aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pending.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-05-28 18:03:28 +0200
committerFlorian Dold <florian@dold.me>2023-05-30 09:33:38 +0200
commit246f914ca62906b463dfe98e834b5ade379a97e0 (patch)
tree3a55e74b74f3ebbae7d6d42fc0eee2c251d85de7 /packages/taler-wallet-core/src/operations/pending.ts
parentbd7ca80ff6528377afdfcb94f612393853d3f69c (diff)
downloadwallet-core-246f914ca62906b463dfe98e834b5ade379a97e0.tar.xz
wallet-core: missing suspended states
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pending.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/pending.ts10
1 files changed, 5 insertions, 5 deletions
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<void> {
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<void> {
await tx.peerPushPaymentIncoming.iter().forEachAsync(async (pi) => {
switch (pi.status) {
- case PeerPushPaymentIncomingStatus.Proposed:
+ case PeerPushPaymentIncomingStatus.DialogProposed:
return;
case PeerPushPaymentIncomingStatus.Done:
return;