diff options
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/query.ts | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/packages/taler-wallet-core/src/util/query.ts b/packages/taler-wallet-core/src/util/query.ts index 2cb0c7fea..ab5a1fc7a 100644 --- a/packages/taler-wallet-core/src/util/query.ts +++ b/packages/taler-wallet-core/src/util/query.ts @@ -77,22 +77,6 @@ function requestToPromise(req: IDBRequest): Promise<any> { }); } -function transactionToPromise(tx: IDBTransaction): Promise<void> { - const stack = Error("Failed transaction was started here."); - return new Promise((resolve, reject) => { - tx.onabort = () => { - reject(TransactionAbort); - }; - tx.oncomplete = () => { - resolve(); - }; - tx.onerror = () => { - console.error("Transaction failed:", stack); - reject(tx.error); - }; - }); -} - type CursorResult<T> = CursorEmptyResult<T> | CursorValueResult<T>; interface CursorEmptyResult<T> { @@ -548,6 +532,7 @@ function makeWriteContext( }, }; } + return ctx; } /** |