Fix error syncing items in unloaded library

This commit is contained in:
Dan Stillman 2015-10-31 01:39:36 -04:00
parent 37b6a14f17
commit b06d93be50

View File

@ -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') {