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/tip.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/tip.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/tip.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/tip.ts b/packages/taler-wallet-core/src/operations/tip.ts index 6dee9c87e..7949648c5 100644 --- a/packages/taler-wallet-core/src/operations/tip.ts +++ b/packages/taler-wallet-core/src/operations/tip.ts @@ -16,7 +16,7 @@ import { InternalWalletState } from "./state"; import { parseTipUri } from "../util/taleruri"; -import { TipStatus, OperationErrorDetails } from "../types/walletTypes"; +import { TipStatus, TalerErrorDetails } from "../types/walletTypes"; import { TipPlanchetDetail, codecForTipPickupGetResponse, @@ -137,7 +137,7 @@ export async function getTipStatus( async function incrementTipRetry( ws: InternalWalletState, refreshSessionId: string, - err: OperationErrorDetails | undefined, + err: TalerErrorDetails | undefined, ): Promise<void> { await ws.db.runWithWriteTransaction([Stores.tips], async (tx) => { const t = await tx.get(Stores.tips, refreshSessionId); @@ -160,7 +160,7 @@ export async function processTip( tipId: string, forceNow = false, ): Promise<void> { - const onOpErr = (e: OperationErrorDetails): Promise<void> => + const onOpErr = (e: TalerErrorDetails): Promise<void> => incrementTipRetry(ws, tipId, e); await guardOperationException( () => processTipImpl(ws, tipId, forceNow), |