From 246f914ca62906b463dfe98e834b5ade379a97e0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 28 May 2023 18:03:28 +0200 Subject: wallet-core: missing suspended states --- packages/taler-wallet-core/src/operations/pending.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/pending.ts') diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts index 7e098b19c..ed32b781d 100644 --- a/packages/taler-wallet-core/src/operations/pending.ts +++ b/packages/taler-wallet-core/src/operations/pending.ts @@ -29,7 +29,7 @@ import { OperationStatus, OperationStatusRange, PeerPushPaymentInitiationStatus, - PeerPullPaymentIncomingStatus, + PeerPullDebitRecordStatus, PeerPushPaymentIncomingStatus, PeerPullPaymentInitiationStatus, } from "../db.js"; @@ -395,11 +395,11 @@ async function gatherPeerPullDebitPending( ): Promise { await tx.peerPullPaymentIncoming.iter().forEachAsync(async (pi) => { switch (pi.status) { - case PeerPullPaymentIncomingStatus.Paid: + case PeerPullDebitRecordStatus.DonePaid: return; - case PeerPullPaymentIncomingStatus.Proposed: + case PeerPullDebitRecordStatus.DialogProposed: return; - case PeerPullPaymentIncomingStatus.Accepted: + case PeerPullDebitRecordStatus.PendingDeposit: break; } const opId = TaskIdentifiers.forPeerPullPaymentDebit(pi); @@ -452,7 +452,7 @@ async function gatherPeerPushCreditPending( ): Promise { await tx.peerPushPaymentIncoming.iter().forEachAsync(async (pi) => { switch (pi.status) { - case PeerPushPaymentIncomingStatus.Proposed: + case PeerPushPaymentIncomingStatus.DialogProposed: return; case PeerPushPaymentIncomingStatus.Done: return; -- cgit v1.2.3