@autofleet/network 1.4.8-beta-1 → 1.4.8-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -168,12 +168,12 @@ module.exports = class Network {
|
|
|
168
168
|
if(!options.perPage) {
|
|
169
169
|
throw new Error('Missing perPage option');
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
|
|
172
172
|
const perPage = options.perPage;
|
|
173
173
|
let lastResultSizeIsLessThanPerPage = false;
|
|
174
174
|
let page = 0;
|
|
175
175
|
while(!lastResultSizeIsLessThanPerPage) {
|
|
176
|
-
const { data } = await this.
|
|
176
|
+
const { data } = await this.post(url, {
|
|
177
177
|
...options,
|
|
178
178
|
page: currentResult.length / perPage + 1,
|
|
179
179
|
});
|