From a49959d2c8bf82575c5d232217a33d91e7b008e8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 20 Feb 2023 21:26:08 +0100 Subject: wallet-core: support long-polling for peer push credit --- packages/taler-wallet-core/src/operations/pending.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 2e3a5c9dc..458448b31 100644 --- a/packages/taler-wallet-core/src/operations/pending.ts +++ b/packages/taler-wallet-core/src/operations/pending.ts @@ -31,6 +31,7 @@ import { PeerPushPaymentInitiationStatus, PeerPullPaymentIncomingStatus, PeerPushPaymentIncomingStatus, + PeerPullPaymentInitiationStatus, } from "../db.js"; import { PendingOperationsResponse, @@ -363,7 +364,7 @@ async function gatherPeerPullInitiationPending( resp: PendingOperationsResponse, ): Promise { await tx.peerPullPaymentInitiations.iter().forEachAsync(async (pi) => { - if (pi.status === OperationStatus.Finished) { + if (pi.status === PeerPullPaymentInitiationStatus.PurseDeposited) { return; } const opId = TaskIdentifiers.forPeerPullPaymentInitiation(pi); -- cgit v1.2.3