diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-06 12:54:49 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-06 12:54:49 +0530 |
commit | 4cfae8f5893d1fc6acec4d97c2d95be016f52064 (patch) | |
tree | 32fdbe9af18dbc713da309f82e6d90e9b178dd95 /src/operations | |
parent | 95e638f513c6e8e5b4ab32981a1f8900b43700c7 (diff) | |
download | wallet-core-4cfae8f5893d1fc6acec4d97c2d95be016f52064.tar.xz |
types
Diffstat (limited to 'src/operations')
-rw-r--r-- | src/operations/pending.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/operations/pending.ts b/src/operations/pending.ts index b0bb9a7c3..106e5053c 100644 --- a/src/operations/pending.ts +++ b/src/operations/pending.ts @@ -38,6 +38,7 @@ import { import { TransactionHandle } from "../util/query"; import { InternalWalletState } from "./state"; import { getBalances, getBalancesInsideTransaction } from "./balance"; +import { ReserveType } from "../types/history"; function updateRetryDelay( oldDelay: Duration, @@ -149,7 +150,9 @@ async function gatherReservePending( ): Promise<void> { // FIXME: this should be optimized by using an index for "onlyDue==true". await tx.iter(Stores.reserves).forEach((reserve) => { - const reserveType = reserve.bankWithdrawStatusUrl ? "taler-bank" : "manual"; + const reserveType = reserve.bankWithdrawStatusUrl + ? ReserveType.TalerBankWithdraw + : ReserveType.Manual; if (!reserve.retryInfo.active) { return; } |