Fix file sync error if local item version is greater than remote item
This can happen because objects are uploaded in batches, but the version number from the last batch is used for all objects (since APIClient.uploadObjects() handles batching internally).
This commit is contained in:
parent
6329e22a20
commit
9073239292
1 changed files with 0 additions and 4 deletions
|
@ -495,10 +495,6 @@ Zotero.Sync.Storage.Mode.ZFS.prototype = {
|
|||
syncRequired: true
|
||||
});
|
||||
}
|
||||
if (version < item.version) {
|
||||
throw new Error("Last-Modified-Version is lower than item version "
|
||||
+ `(${version} < ${item.version})`);
|
||||
}
|
||||
|
||||
// Get updated item metadata
|
||||
let library = Zotero.Libraries.get(item.libraryID);
|
||||
|
|
Loading…
Add table
Reference in a new issue