commit b06d93be50eb379c581e38146e0c778bd4291e0b parent 37b6a14f177ed27315b5d2c519f8fac45aa6c6e1 Author: Dan Stillman <dstillman@zotero.org> Date: Sat, 31 Oct 2015 01:39:36 -0400 Fix error syncing items in unloaded library Diffstat:
| M | chrome/content/zotero/xpcom/sync/syncEngine.js | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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') {