From 8ca8dc83c41b175edabf3b1ad3e8c931c87b2f47 Mon Sep 17 00:00:00 2001 From: MD Jahidul Islam Date: Sat, 23 Nov 2019 10:20:03 +0100 Subject: [PATCH] added default value for maxReturn --- lib/nextPageFn/offset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nextPageFn/offset.js b/lib/nextPageFn/offset.js index ef79391..f471ebb 100644 --- a/lib/nextPageFn/offset.js +++ b/lib/nextPageFn/offset.js @@ -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)); }