diff options
author | Florian Dold <florian@dold.me> | 2022-10-08 23:45:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-08 23:45:49 +0200 |
commit | 8ac5080607d28f8dcd84a949221a551a3f66cea8 (patch) | |
tree | 2aadd0952be1aa2dcc1cddab5de1f9218941c643 /packages/taler-wallet-core/src/operations/pending.ts | |
parent | 3897bd4f018bf23ab485325d48a259958653ff52 (diff) | |
download | wallet-core-8ac5080607d28f8dcd84a949221a551a3f66cea8.tar.xz |
wallet-core: more DB and refund fixes
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pending.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pending.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts index db7a85432..285cef534 100644 --- a/packages/taler-wallet-core/src/operations/pending.ts +++ b/packages/taler-wallet-core/src/operations/pending.ts @@ -22,7 +22,7 @@ * Imports. */ import { - ProposalStatus, + PurchaseStatus, WalletStoresV1, BackupProviderStateTag, RefreshCoinStatus, @@ -252,7 +252,6 @@ async function gatherPurchasePending( now: AbsoluteTime, resp: PendingOperationsResponse, ): Promise<void> { - // FIXME: Only iter purchases with some "active" flag! const keyRange = GlobalIDB.KeyRange.bound( OperationStatusRange.ACTIVE_START, OperationStatusRange.ACTIVE_END, @@ -268,7 +267,7 @@ async function gatherPurchasePending( type: PendingTaskType.Purchase, ...getPendingCommon(ws, opId, timestampDue), givesLifeness: true, - statusStr: ProposalStatus[pr.status], + statusStr: PurchaseStatus[pr.purchaseStatus], proposalId: pr.proposalId, retryInfo: retryRecord?.retryInfo, lastError: retryRecord?.lastError, |