aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pending.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pending.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/pending.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts
index 200e6ccbd..a4ca972a7 100644
--- a/packages/taler-wallet-core/src/operations/pending.ts
+++ b/packages/taler-wallet-core/src/operations/pending.ts
@@ -27,6 +27,7 @@ import {
AbortStatus,
WalletStoresV1,
BackupProviderStateTag,
+ RefreshCoinStatus,
} from "../db.js";
import {
PendingOperationsResponse,
@@ -111,12 +112,17 @@ async function gatherRefreshPending(
if (r.timestampFinished) {
return;
}
+ if (r.frozen) {
+ return;
+ }
resp.pendingOperations.push({
type: PendingTaskType.Refresh,
givesLifeness: true,
timestampDue: r.retryInfo.nextRetry,
refreshGroupId: r.refreshGroupId,
- finishedPerCoin: r.finishedPerCoin,
+ finishedPerCoin: r.statusPerCoin.map(
+ (x) => x === RefreshCoinStatus.Finished,
+ ),
retryInfo: r.retryInfo,
});
});