aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/refresh.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-01-11 21:00:12 +0100
committerFlorian Dold <florian@dold.me>2022-01-11 22:15:56 +0100
commita74cdf05295764258fe9e7f66f73a442a9b46697 (patch)
treed1a662fede130abc1fa33cdbc96c081cc47b23cd /packages/taler-wallet-core/src/operations/refresh.ts
parenta05e891d6e1468fdd99f710301e286857a46aea3 (diff)
downloadwallet-core-a74cdf05295764258fe9e7f66f73a442a9b46697.tar.xz
fix DB indexing issues
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/refresh.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts
index 00eaa0eac..5b589f1fa 100644
--- a/packages/taler-wallet-core/src/operations/refresh.ts
+++ b/packages/taler-wallet-core/src/operations/refresh.ts
@@ -26,6 +26,7 @@ import {
CoinSourceType,
CoinStatus,
DenominationRecord,
+ OperationStatus,
RefreshCoinStatus,
RefreshGroupRecord,
WalletStoresV1,
@@ -127,6 +128,7 @@ function updateGroupStatus(rg: RefreshGroupRecord): void {
rg.retryInfo = initRetryInfo();
} else {
rg.timestampFinished = getTimestampNow();
+ rg.operationStatus = OperationStatus.Finished;
rg.retryInfo = initRetryInfo();
}
}
@@ -929,6 +931,7 @@ export async function createRefreshGroup(
}
const refreshGroup: RefreshGroupRecord = {
+ operationStatus: OperationStatus.Pending,
timestampFinished: undefined,
statusPerCoin: oldCoinPubs.map(() => RefreshCoinStatus.Pending),
lastError: undefined,