Tweak debugging for missing-key sync error
This commit is contained in:
parent
1061893998
commit
663acccbc2
1 changed files with 2 additions and 11 deletions
|
@ -995,7 +995,6 @@ Zotero.Sync.Data.Engine.prototype._startUpload = Zotero.Promise.coroutine(functi
|
||||||
|
|
||||||
// New/modified objects
|
// New/modified objects
|
||||||
let ids = yield Zotero.Sync.Data.Local.getUnsynced(objectType, this.libraryID);
|
let ids = yield Zotero.Sync.Data.Local.getUnsynced(objectType, this.libraryID);
|
||||||
let origIDs = ids; // TEMP
|
|
||||||
|
|
||||||
// Skip objects in sync queue, because they might have unresolved conflicts.
|
// Skip objects in sync queue, because they might have unresolved conflicts.
|
||||||
// The queue only has keys, so we have to convert to keys and back.
|
// The queue only has keys, so we have to convert to keys and back.
|
||||||
|
@ -1022,17 +1021,9 @@ Zotero.Sync.Data.Engine.prototype._startUpload = Zotero.Promise.coroutine(functi
|
||||||
});
|
});
|
||||||
if (missing.length) {
|
if (missing.length) {
|
||||||
Zotero.debug("Missing " + objectTypePlural + ":");
|
Zotero.debug("Missing " + objectTypePlural + ":");
|
||||||
Zotero.debug(origIDs);
|
Zotero.debug(ids.filter(id => !id));
|
||||||
Zotero.debug(origUnsynced);
|
Zotero.debug(ids.filter(id => !objectsClass.getLibraryAndKeyFromID(id)));
|
||||||
Zotero.debug(ids);
|
|
||||||
Zotero.debug(unsyncedKeys);
|
|
||||||
Zotero.debug(missing);
|
Zotero.debug(missing);
|
||||||
for (let key of missing) {
|
|
||||||
Zotero.debug(yield Zotero.DB.valueQueryAsync(
|
|
||||||
`SELECT ${objectsClass.idColumn} FROM ${objectsClass.table} WHERE libraryID=? AND key=?`,
|
|
||||||
[this.libraryID, key]
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ids.length) {
|
if (ids.length) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue