diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index cb9f8fd..3609e7b 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -150,6 +150,7 @@ func (h *Handlers) createAccountNoExist(ctx context.Context, sessionId string, r data := map[utils.DataTyp]string{ utils.DATA_TRACKING_ID: trackingId, utils.DATA_PUBLIC_KEY: publicKey, + utils.DATA_ADDRESS: sessionId, } for key, value := range data { store := h.userdataStore @@ -544,6 +545,7 @@ func (h *Handlers) CheckAccountStatus(ctx context.Context, sym string, input []b if err != nil { return res, err } + okResponse, err = h.accountService.TrackAccountStatus(ctx, string(publicKey)) if err != nil { res.FlagSet = append(res.FlagSet, flag_api_error) diff --git a/internal/utils/db.go b/internal/utils/db.go index 410da68..fcf5c2b 100644 --- a/internal/utils/db.go +++ b/internal/utils/db.go @@ -23,6 +23,7 @@ const ( DATA_RECIPIENT DATA_AMOUNT DATA_TEMPORARY_PIN + DATA_ADDRESS ) func typToBytes(typ DataTyp) []byte {