Skip to content

Commit

Permalink
Avoid object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
XVincentX committed Jun 27, 2018
1 parent 3089255 commit c7bab66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = function (client) {
if (params.all && res.body.nextKey !== 0) {
return client
.get(baseUrl)
.query(Object.assign({}, params, { start: res.body.nextKey }))
.query({ start: res.body.nextKey, count: params.count })
.then(fetchNext);
}
return { apps: results, nextKey: res.body.nextKey };
Expand Down
2 changes: 1 addition & 1 deletion admin/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function (client) {
if (params.all && res.body.nextKey !== 0) {
return client
.get(baseUrl)
.query(Object.assign({}, params, { start: res.body.nextKey }))
.query({ start: res.body.nextKey, count: params.count })
.then(fetchNext);
}
return { users: results, nextKey: res.body.nextKey };
Expand Down

0 comments on commit c7bab66

Please sign in to comment.