aboutsummaryrefslogtreecommitdiff
path: root/src/operations/history.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/operations/history.ts')
-rw-r--r--src/operations/history.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/operations/history.ts b/src/operations/history.ts
index 9c4bb6a90..b8d756cc6 100644
--- a/src/operations/history.ts
+++ b/src/operations/history.ts
@@ -17,7 +17,7 @@
/**
* Imports.
*/
-import { oneShotIter, runWithReadTransaction } from "../util/query";
+import { Database } from "../util/query";
import { InternalWalletState } from "./state";
import { Stores, TipRecord } from "../types/dbTypes";
import * as Amounts from "../util/amounts";
@@ -38,8 +38,7 @@ export async function getHistory(
// This works as timestamps are guaranteed to be monotonically
// increasing even
- await runWithReadTransaction(
- ws.db,
+ await ws.db.runWithReadTransaction(
[
Stores.currencies,
Stores.coins,