mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Make retrieving transactionDate with no transaction fatal
I think the places where we retrieve it are always within transactions, and this helps catch promises that aren't waited for.
This commit is contained in:
parent
8c32210507
commit
944d298af7
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ Zotero.DBConnection = function(dbName) {
|
|||
return this._transactionDate;
|
||||
}
|
||||
|
||||
Zotero.debug("Zotero.DB.transactionDate retrieved with no transaction", 2);
|
||||
throw new Error("Transaction not in progress");
|
||||
|
||||
// Use second granularity rather than millisecond
|
||||
// for comparison purposes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue