formatting / DCE

This commit is contained in:
Florian Dold 2020-03-09 14:19:22 +05:30
parent 4999920373
commit 7ba1f91823
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -15,7 +15,12 @@
*/
import { InternalWalletState } from "./state";
import { ExchangeKeysJson, Denomination, ExchangeWireJson, codecForExchangeKeysJson, codecForExchangeWireJson } from "../types/talerTypes";
import {
ExchangeKeysJson,
Denomination,
codecForExchangeKeysJson,
codecForExchangeWireJson,
} from "../types/talerTypes";
import { OperationError } from "../types/walletTypes";
import {
ExchangeRecord,
@ -27,10 +32,7 @@ import {
ExchangeUpdateReason,
ExchangeUpdatedEventRecord,
} from "../types/dbTypes";
import {
canonicalizeBaseUrl,
} from "../util/helpers";
import { Database } from "../util/query";
import { canonicalizeBaseUrl } from "../util/helpers";
import * as Amounts from "../util/amounts";
import { parsePaytoUri } from "../util/payto";
import {
@ -127,7 +129,7 @@ async function updateExchangeWithKeys(
throw new OperationFailedAndReportedError(m);
}
const lastUpdateTimestamp = exchangeKeysJson.list_issue_date
const lastUpdateTimestamp = exchangeKeysJson.list_issue_date;
if (!lastUpdateTimestamp) {
const m = `Parsing /keys response failed: invalid list_issue_date.`;
await setExchangeError(ws, baseUrl, {