From f67d7f54f9d0fed97446898942e3dfee67ee2985 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 5 Dec 2019 19:38:19 +0100 Subject: threads, retries and notifications WIP --- src/util/query.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util/query.ts') diff --git a/src/util/query.ts b/src/util/query.ts index b1b19665b..e05656bb7 100644 --- a/src/util/query.ts +++ b/src/util/query.ts @@ -316,7 +316,7 @@ export function oneShotIterIndex( return new ResultStream(req); } -class TransactionHandle { +export class TransactionHandle { constructor(private tx: IDBTransaction) {} put(store: Store, value: T, key?: any): Promise { @@ -406,6 +406,7 @@ function runWithTransaction( }; tx.onerror = () => { console.error("error in transaction"); + console.error(stack); }; tx.onabort = () => { if (tx.error) { -- cgit v1.2.3