await callback in case we need to read, then write from it

This commit is contained in:
Bruno Windels 2020-08-28 13:54:42 +02:00
parent 3ab5a72221
commit d64db185bd

View file

@ -115,7 +115,7 @@ export class Account {
storage.storeNames.session
]);
try {
callback(txn.session);
await callback(txn.session);
} catch (err) {
txn.abort();
throw err;