diff options
author | Florian Dold <florian@dold.me> | 2023-02-20 21:26:08 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-20 21:26:08 +0100 |
commit | a49959d2c8bf82575c5d232217a33d91e7b008e8 (patch) | |
tree | 03dbbfd397a83dffaaa53580102f3d7108a7b70d /packages/taler-wallet-core/src/operations/pending.ts | |
parent | e8b5f26ab6407fbcecfe464f5aba8d1db9e487cd (diff) |
wallet-core: support long-polling for peer push credit
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pending.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pending.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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<void> { await tx.peerPullPaymentInitiations.iter().forEachAsync(async (pi) => { - if (pi.status === OperationStatus.Finished) { + if (pi.status === PeerPullPaymentInitiationStatus.PurseDeposited) { return; } const opId = TaskIdentifiers.forPeerPullPaymentInitiation(pi); |