Skip to content

Commit

Permalink
added default value for maxReturn
Browse files Browse the repository at this point in the history
  • Loading branch information
jsec516 committed Nov 23, 2019
1 parent c4d86fd commit 8ca8dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nextPageFn/offset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = (conn, method, args, options) => {
params = options.data = options.data || {};
}

params.offset = (params.offset || 0) + params.maxReturn;
params.offset = (params.offset || 0) + (params.maxReturn || 20);

return conn._request.apply(conn, _.flatten([method, args, options], true));
}
Expand Down

0 comments on commit 8ca8dc8

Please sign in to comment.