diff --git a/chrome/content/zotero/xpcom/sync/syncEngine.js b/chrome/content/zotero/xpcom/sync/syncEngine.js index 714bc1bfa..049554fc4 100644 --- a/chrome/content/zotero/xpcom/sync/syncEngine.js +++ b/chrome/content/zotero/xpcom/sync/syncEngine.js @@ -663,7 +663,9 @@ Zotero.Sync.Data.Engine.prototype._startUpload = Zotero.Promise.coroutine(functi throw new Error("Key mismatch (" + key + " != " + batch[index].key + ")"); } - let obj = objectsClass.getByLibraryAndKey(this.libraryID, key, { noCache: true }) + let obj = yield objectsClass.getByLibraryAndKeyAsync( + this.libraryID, key, { noCache: true } + ) ids.push(obj.id); if (state == 'successful') {