Skip to content

Commit

Permalink
fixup! fix(outdated content): apply limit to batched id query
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Rötsch committed Apr 7, 2017
1 parent c56aac9 commit a793056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get/get-outdated-destination-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function batchedIdQuery (space, method, ids) {
return Promise.reduce(getIdBatches(ids), (fullResponse, batch) => {
return space[method]({
'sys.id[in]': batch,
limit: batch.length
limit: batch.split(',').length
})
.then((response) => {
fullResponse = fullResponse.concat(response.items)
Expand Down

0 comments on commit a793056

Please sign in to comment.