Debugging for sync issue
This commit is contained in:
parent
5e3c7bf63d
commit
4502b5e990
1 changed files with 6 additions and 0 deletions
|
@ -824,7 +824,13 @@ Zotero.Sync.Data.Engine.prototype._startUpload = Zotero.Promise.coroutine(functi
|
|||
let unsyncedKeys = ids.map(id => objectsClass.getLibraryAndKeyFromID(id).key);
|
||||
let origUnsynced = unsyncedKeys; // TEMP
|
||||
let queueKeys = yield Zotero.Sync.Data.Local.getObjectsFromSyncQueue(objectType, this.libraryID);
|
||||
let num = unsyncedKeys.length;
|
||||
unsyncedKeys = Zotero.Utilities.arrayDiff(unsyncedKeys, queueKeys);
|
||||
if (unsyncedKeys.length < num) {
|
||||
Zotero.debug(`Skipping ${num - unsyncedKeys.length} key(s) in sync queue`);
|
||||
Zotero.debug(Zotero.Utilities.arrayDiff(unsyncedKeys, queueKeys));
|
||||
}
|
||||
|
||||
// TEMP
|
||||
//ids = unsyncedKeys.map(key => objectsClass.getIDFromLibraryAndKey(this.libraryID, key));
|
||||
let missing = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue