wallet-core: fix peer-push-debit transition helper

This commit is contained in:
Florian Dold 2023-06-06 15:01:59 +02:00
parent 474a171f5e
commit 570c9dcbad
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -288,8 +288,8 @@ async function transitionPeerPushDebitTransaction(
} }
const oldTxState = computePeerPushDebitTransactionState(ppiRec); const oldTxState = computePeerPushDebitTransactionState(ppiRec);
ppiRec.status = transitionSpec.stTo; ppiRec.status = transitionSpec.stTo;
await tx.peerPushPaymentInitiations.put(ppiRec);
const newTxState = computePeerPushDebitTransactionState(ppiRec); const newTxState = computePeerPushDebitTransactionState(ppiRec);
// FIXME: We don't transition here?!
return { return {
oldTxState, oldTxState,
newTxState, newTxState,