diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-08 20:29:47 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-08 20:29:47 +0530 |
commit | 6c0be1cc956ce57fdc13509113448fe702b43da9 (patch) | |
tree | 15bd098eaf36230d597dafe3ada4d1dba3a0242a /packages/taler-wallet-core/src/operations/refresh.ts | |
parent | 043a5f89fe020bbb55170a9fc355c3d699ad8761 (diff) | |
download | wallet-core-6c0be1cc956ce57fdc13509113448fe702b43da9.tar.xz |
DB cleanup
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/refresh.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index a7082a501..a6917c285 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -19,11 +19,9 @@ import { DenominationRecord, Stores, CoinStatus, - RefreshPlanchetRecord, + RefreshPlanchet, CoinRecord, RefreshSessionRecord, - initRetryInfo, - updateRetryInfoTimeout, RefreshGroupRecord, CoinSourceType, } from "../types/dbTypes"; @@ -56,8 +54,6 @@ import { } from "../util/time"; import { readSuccessResponseJsonOrThrow, - HttpResponse, - throwUnexpectedRequestError, } from "../util/http"; import { codecForExchangeMeltResponse, @@ -65,6 +61,7 @@ import { } from "../types/talerTypes"; import { URL } from "../util/url"; import { checkDbInvariant } from "../util/invariants"; +import { initRetryInfo, updateRetryInfoTimeout } from "../util/retries"; const logger = new Logger("refresh.ts"); @@ -326,7 +323,7 @@ async function refreshReveal( throw Error("inconsistent database"); } - const evs = planchets.map((x: RefreshPlanchetRecord) => x.coinEv); + const evs = planchets.map((x: RefreshPlanchet) => x.coinEv); const linkSigs: string[] = []; for (let i = 0; i < refreshSession.newDenoms.length; i++) { |