await callback in case we need to read, then write from it
This commit is contained in:
parent
3ab5a72221
commit
d64db185bd
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ export class Account {
|
||||||
storage.storeNames.session
|
storage.storeNames.session
|
||||||
]);
|
]);
|
||||||
try {
|
try {
|
||||||
callback(txn.session);
|
await callback(txn.session);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
txn.abort();
|
txn.abort();
|
||||||
throw err;
|
throw err;
|
||||||
|
|
Reference in a new issue