forked from mystiq/hydrogen-web
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;
|
||||
|
|
Loading…
Reference in a new issue