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
|
||||
]);
|
||||
try {
|
||||
callback(txn.session);
|
||||
await callback(txn.session);
|
||||
} catch (err) {
|
||||
txn.abort();
|
||||
throw err;
|
||||
|
|
Reference in a new issue