fix build error from rename
This commit is contained in:
parent
8c92499d85
commit
58ef1e13df
@ -106,7 +106,7 @@ function transactionToPromise(tx: IDBTransaction): Promise<void> {
|
|||||||
};
|
};
|
||||||
tx.onerror = () => {
|
tx.onerror = () => {
|
||||||
console.error("Transaction failed:", stack);
|
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}`);
|
logger.error(`${stack}`);
|
||||||
};
|
};
|
||||||
tx.onabort = () => {
|
tx.onabort = () => {
|
||||||
if (tx._error) {
|
if (tx.error) {
|
||||||
logger.error("Transaction aborted with error:", tx._error);
|
logger.error("Transaction aborted with error:", tx.error);
|
||||||
} else {
|
} else {
|
||||||
logger.error("Trasaction aborted (no error)");
|
logger.error("Trasaction aborted (no error)");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user