From b2208359d6ee4b55775b22f9f7e1817e428ad0d8 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Mon, 24 Mar 2025 19:46:42 +0300 Subject: [PATCH] Add missing param to the GetVoucherData --- handlers/event/token.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handlers/event/token.go b/handlers/event/token.go index 713dab7..b9edb8b 100644 --- a/handlers/event/token.go +++ b/handlers/event/token.go @@ -49,9 +49,8 @@ func (eu *EventsUpdater) updateToken(ctx context.Context, identity identity.Iden // set default token to given symbol. func (eu *EventsUpdater) updateDefaultToken(ctx context.Context, identity identity.Identity, userStore *store.UserDataStore, activeSym string) error { - pfxDb := toPrefixDb(userStore, identity.SessionId) // TODO: the activeSym input should instead be newline separated list? - tokenData, err := store.GetVoucherData(ctx, pfxDb, activeSym) + tokenData, err := store.GetVoucherData(ctx, userStore, identity.SessionId, activeSym) if err != nil { return err }