Skip to content

Commit

Permalink
feat(stock-import): set page limit to 500 for fetch all (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
lojzatran authored and hisabimbola committed Jul 11, 2017
1 parent 8792014 commit 8c8a142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"csv": "^1.1.0",
"debug": "^2.2.0",
"optimist": "^0.6.1",
"sphere-node-sdk": "^1.17.6",
"sphere-node-sdk": "^1.20.0",
"sphere-node-utils": "^0.7.0",
"tmp": "^0.0.23",
"underscore": "^1.8.3",
Expand Down
1 change: 1 addition & 0 deletions src/coffee/stockimport.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ class StockImport
predicate = "sku in (#{skus.join(', ')})"

@client.inventoryEntries.all()
.perPage(500)
.where(predicate)
.fetch()
.then (results) =>
Expand Down

0 comments on commit 8c8a142

Please sign in to comment.