update the db key name for clarity

This commit is contained in:
Alfred Kamanda 2026-02-18 16:56:40 +03:00
parent d2b4dcef36
commit 5650629ae4
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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
)