diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-01 18:27:22 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-01 18:27:22 +0530 |
commit | 8c33e05bf08976403719a17b1faf424109a7eaa5 (patch) | |
tree | 61c72737640c9b552c41f62640cfb0c8c845f38a /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | 5056da6548d5880211abd3e1cdacd92134e40dab (diff) | |
download | wallet-core-8c33e05bf08976403719a17b1faf424109a7eaa5.tar.xz |
harmonized error codesv0.7.1-dev.23
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 3977ba121..2ab1ea52d 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -32,7 +32,7 @@ import { import { BankWithdrawDetails, ExchangeWithdrawDetails, - OperationErrorDetails, + TalerErrorDetails, ExchangeListItem, } from "../types/walletTypes"; import { @@ -552,7 +552,7 @@ export async function selectWithdrawalDenoms( async function incrementWithdrawalRetry( ws: InternalWalletState, withdrawalGroupId: string, - err: OperationErrorDetails | undefined, + err: TalerErrorDetails | undefined, ): Promise<void> { await ws.db.runWithWriteTransaction([Stores.withdrawalGroups], async (tx) => { const wsr = await tx.get(Stores.withdrawalGroups, withdrawalGroupId); @@ -574,7 +574,7 @@ export async function processWithdrawGroup( withdrawalGroupId: string, forceNow = false, ): Promise<void> { - const onOpErr = (e: OperationErrorDetails): Promise<void> => + const onOpErr = (e: TalerErrorDetails): Promise<void> => incrementWithdrawalRetry(ws, withdrawalGroupId, e); await guardOperationException( () => processWithdrawGroupImpl(ws, withdrawalGroupId, forceNow), @@ -645,7 +645,7 @@ async function processWithdrawGroupImpl( let numFinished = 0; let finishedForFirstTime = false; - let errorsPerCoin: Record<number, OperationErrorDetails> = {}; + let errorsPerCoin: Record<number, TalerErrorDetails> = {}; await ws.db.runWithWriteTransaction( [Stores.coins, Stores.withdrawalGroups, Stores.reserves, Stores.planchets], |