diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-03 20:38:26 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-03 20:38:26 +0530 |
commit | f51a59bc72c2886cb2bb88b149a3353857e3eb44 (patch) | |
tree | fee6f86112580241f8328869c1e71dd58e238fa9 /packages/taler-wallet-core/src/operations/exchanges.ts | |
parent | bf9c2ae7f9c24168ddea2ef9387c5a624287d993 (diff) | |
download | wallet-core-f51a59bc72c2886cb2bb88b149a3353857e3eb44.tar.xz |
implement and test auto-refresh
Diffstat (limited to 'packages/taler-wallet-core/src/operations/exchanges.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/exchanges.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts index d162ca3b8..d3c72d164 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -303,6 +303,9 @@ async function updateExchangeFinalize( } r.addComplete = true; r.updateStatus = ExchangeUpdateStatus.Finished; + // Reset time to next auto refresh check, + // as now new denominations might be available. + r.nextRefreshCheck = undefined; await tx.put(Stores.exchanges, r); const updateEvent: ExchangeUpdatedEventRecord = { exchangeBaseUrl: exchange.baseUrl, |