Fix error adding >200 items to sync queue

This commit is contained in:
Dan Stillman 2016-08-10 01:57:52 -04:00
parent 715193639b
commit da9ac72d51

View file

@ -1580,7 +1580,7 @@ Zotero.Sync.Data.Local = {
+ "(libraryID, key, syncObjectTypeID, lastCheck, tries) VALUES ";
return Zotero.Utilities.Internal.forEachChunkAsync(
keys,
Math.floor(Zotero.DB.MAX_BOUND_PARAMETERS / 3),
Math.floor(Zotero.DB.MAX_BOUND_PARAMETERS / 5),
function (chunk) {
var params = chunk.reduce(
(arr, key) => arr.concat(