feat(account): #66 remove db interface for accounts
This commit was merged in pull request #73.
This commit is contained in:
3
main.go
3
main.go
@@ -107,7 +107,6 @@ func createHandler(d *sqlx.DB, serverSettings *types.Settings) http.Handler {
|
||||
var router = http.NewServeMux()
|
||||
|
||||
authDb := db.NewAuthSqlite(d)
|
||||
accountDb := db.NewAccountSqlite(d)
|
||||
treasureChestDb := db.NewTreasureChestSqlite(d)
|
||||
|
||||
randomService := service.NewRandom()
|
||||
@@ -115,7 +114,7 @@ func createHandler(d *sqlx.DB, serverSettings *types.Settings) http.Handler {
|
||||
mailService := service.NewMail(serverSettings)
|
||||
|
||||
authService := service.NewAuth(authDb, randomService, clockService, mailService, serverSettings)
|
||||
accountService := service.NewAccount(accountDb, randomService, clockService, serverSettings)
|
||||
accountService := service.NewAccount(d, randomService, clockService, serverSettings)
|
||||
treasureChestService := service.NewTreasureChest(treasureChestDb, randomService, clockService, serverSettings)
|
||||
transactionService := service.NewTransaction(d, randomService, clockService, serverSettings)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user