Add missing yield in sync code
This commit is contained in:
parent
7ed0d8a408
commit
f04f186396
2 changed files with 2 additions and 2 deletions
|
@ -854,7 +854,7 @@ Zotero.Sync.Data.Engine.prototype._downloadDeletions = Zotero.Promise.coroutine(
|
|||
// If item is already in trash locally, just delete it
|
||||
if (obj.deleted) {
|
||||
Zotero.debug("Local item is in trash -- applying remote deletion");
|
||||
obj.eraseTx({
|
||||
yield obj.eraseTx({
|
||||
skipDeleteLog: true
|
||||
});
|
||||
continue;
|
||||
|
|
|
@ -3853,7 +3853,7 @@ describe("Zotero.Sync.Data.Engine", function () {
|
|||
assert.ok(yield Zotero.Sync.Data.Local.getDateDeleted('item', libraryID, key));
|
||||
});
|
||||
|
||||
it("should handle remote move to trash and local deletion", function* () {
|
||||
it("should delete locally trashed item on remote deletion", function* () {
|
||||
var libraryID = Zotero.Libraries.userLibraryID;
|
||||
({ engine, client, caller } = yield setup());
|
||||
var type = 'item';
|
||||
|
|
Loading…
Reference in a new issue