diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-29 18:27:50 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-29 18:27:50 +0200 |
commit | 94d111a94533c0c31231642e8ffe4fbd4ce30096 (patch) | |
tree | 79c9f8ec3754699f8a135630f1ab6ee9be8019e6 /src/wallet.ts | |
parent | b5c90d12219ca3a0df173ddf085d2353831a8ef6 (diff) |
lint for unused variables, fix query bug detected by this
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 5564162b9..92187d82f 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -28,13 +28,10 @@ import { amountToPretty, canonicalJson, canonicalizeBaseUrl, - deepEquals, - flatMap, getTalerStampSec, } from "./helpers"; import { HttpRequestLibrary, - HttpResponse, RequestException, } from "./http"; import { @@ -49,7 +46,6 @@ import { AmountJson, Amounts, Auditor, - AuditorRecord, CheckPayResult, CoinPaySig, CoinRecord, @@ -1045,7 +1041,6 @@ export class Wallet { this.startOperation(opId); try { - const exchange = await this.updateExchangeFromUrl(reserveRecord.exchange_base_url); const reserve = await this.updateReserve(reserveRecord.reserve_pub); const n = await this.depleteReserve(reserve); @@ -1381,12 +1376,14 @@ export class Wallet { requestedAmount: reserve.requested_amount, reservePub, }, + level: HistoryLevel.Developer, subjectId: `reserve-progress-${reserve.reserve_pub}`, timestamp: (new Date()).getTime(), type: "reserve-update", }; await this.q() .put(Stores.reserves, reserve) + .put(Stores.history, historyEntry) .finish(); this.notifier.notify(); return reserve; |