fix build error from rename

This commit is contained in:
Florian Dold 2021-02-09 19:40:24 +01:00
parent 8c92499d85
commit 58ef1e13df
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -106,7 +106,7 @@ function transactionToPromise(tx: IDBTransaction): Promise<void> {
};
tx.onerror = () => {
console.error("Transaction failed:", stack);
reject(tx._error);
reject(tx.error);
};
});
}
@ -394,8 +394,8 @@ function runWithTransaction<T, StoreTypes extends Store<string, {}>>(
logger.error(`${stack}`);
};
tx.onabort = () => {
if (tx._error) {
logger.error("Transaction aborted with error:", tx._error);
if (tx.error) {
logger.error("Transaction aborted with error:", tx.error);
} else {
logger.error("Trasaction aborted (no error)");
}