From 5650629ae459c16a63d60498efad581d0c560ef7 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Wed, 18 Feb 2026 16:56:40 +0300 Subject: [PATCH] update the db key name for clarity --- handlers/application/vouchers.go | 4 ++-- store/db/db.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/application/vouchers.go b/handlers/application/vouchers.go index 32a0d4b..50dd86b 100644 --- a/handlers/application/vouchers.go +++ b/handlers/application/vouchers.go @@ -451,9 +451,9 @@ func (h *MenuHandlers) ValidateCreditVoucher(ctx context.Context, sym string, in } // Store the state of the custom transaction voucher - err = userStore.WriteEntry(ctx, sessionId, storedb.DATA_TRANSACTION_CUSTOM_VOUCHER, []byte("1")) + err = userStore.WriteEntry(ctx, sessionId, storedb.DATA_TRANSACTION_CUSTOM_VOUCHER_STATE, []byte("1")) if err != nil { - logg.ErrorCtxf(ctx, "failed to write custom transaction voucher", "key", storedb.DATA_TRANSACTION_CUSTOM_VOUCHER, "error", err) + logg.ErrorCtxf(ctx, "failed to write custom transaction voucher", "key", storedb.DATA_TRANSACTION_CUSTOM_VOUCHER_STATE, "error", err) return res, err } diff --git a/store/db/db.go b/store/db/db.go index b613b69..b363249 100644 --- a/store/db/db.go +++ b/store/db/db.go @@ -96,7 +96,7 @@ const ( // Currently active swap from balance for the swap DATA_ACTIVE_SWAP_FROM_BALANCE // Holds the state whether the transaction uses a custom voucher - DATA_TRANSACTION_CUSTOM_VOUCHER + DATA_TRANSACTION_CUSTOM_VOUCHER_STATE // Holds the initial recipient input given by the user DATA_RECIPIENT_INPUT )