update the db key name for clarity
This commit is contained in:
parent
d2b4dcef36
commit
5650629ae4
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user