From 5aed7c647f69f17c5fd43994fefb669876c9aab3 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Thu, 12 Sep 2024 15:52:22 +0300 Subject: [PATCH] match change to account service --- internal/handlers/ussd/menuhandler.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index 6773421..df5338b 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -4,6 +4,7 @@ import ( "bytes" "context" "fmt" + "net/http" "path" "regexp" "strconv" @@ -73,10 +74,13 @@ func NewHandlers(appFlags *asm.FlagParser, userdataStore db.Db) (*Handlers, erro userDb := &utils.UserDataStore{ Db: userdataStore, } + client := &http.Client{} h := &Handlers{ - userdataStore: userDb, - flagManager: appFlags, - accountService: &server.AccountService{}, + userdataStore: userDb, + flagManager: appFlags, + accountService: &server.AccountService{ + Client: client, + }, } return h, nil }