pass account service as a param

This commit is contained in:
2024-10-08 00:03:29 +03:00
parent d7bfdc62e9
commit d01af48216
3 changed files with 10 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ import (
"git.grassecon.net/urdt/ussd/internal/handlers"
"git.grassecon.net/urdt/ussd/internal/storage"
"git.grassecon.net/urdt/ussd/internal/handlers/server"
)
var (
@@ -94,8 +95,9 @@ func main() {
lhs, err := handlers.NewLocalHandlerService(pfp, true, dbResource, cfg, rs)
lhs.SetDataStore(&userdataStore)
accountService := server.AccountService{}
hl, err := lhs.GetHandler()
hl, err := lhs.GetHandler(&accountService)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)