fx-compat: DB.executeTransaction() no longer takes generator functions
This commit is contained in:
parent
ccbc785499
commit
03242e8984
41 changed files with 319 additions and 320 deletions
|
@ -363,11 +363,11 @@ describe("Zotero.CollectionTree", function() {
|
|||
|
||||
it("should add multiple collections", function* () {
|
||||
var col1, col2;
|
||||
yield Zotero.DB.executeTransaction(function* () {
|
||||
yield Zotero.DB.executeTransaction(async function () {
|
||||
col1 = createUnsavedDataObject('collection');
|
||||
col2 = createUnsavedDataObject('collection');
|
||||
yield col1.save();
|
||||
yield col2.save();
|
||||
await col1.save();
|
||||
await col2.save();
|
||||
});
|
||||
|
||||
var aRow = cv.getRowIndexByID("C" + col1.id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue