summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/refresh.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-08 20:29:47 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-08 20:29:47 +0530
commit6c0be1cc956ce57fdc13509113448fe702b43da9 (patch)
tree15bd098eaf36230d597dafe3ada4d1dba3a0242a /packages/taler-wallet-core/src/operations/refresh.ts
parent043a5f89fe020bbb55170a9fc355c3d699ad8761 (diff)
downloadwallet-core-6c0be1cc956ce57fdc13509113448fe702b43da9.tar.gz
wallet-core-6c0be1cc956ce57fdc13509113448fe702b43da9.tar.bz2
wallet-core-6c0be1cc956ce57fdc13509113448fe702b43da9.zip
DB cleanup
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/refresh.ts9
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++) {