Skip to content

Commit 47bbe98

Browse files
authoredApr 14, 2022
fix(Zoho Node): Fix pagination issue (n8n-io#3129)
1 parent 5e54249 commit 47bbe98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎packages/nodes-base/nodes/Zoho/GenericFunctions.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,13 @@ export async function zohoApiRequestAllItems(
9191
const returnData: IDataObject[] = [];
9292

9393
let responseData;
94-
let uri: string | undefined;
9594
qs.per_page = 200;
96-
qs.page = 0;
95+
qs.page = 1;
9796

9897
do {
99-
responseData = await zohoApiRequest.call(this, method, endpoint, body, qs, uri);
98+
responseData = await zohoApiRequest.call(this, method, endpoint, body, qs);
10099
if (Array.isArray(responseData) && !responseData.length) return returnData;
101100
returnData.push(...responseData.data);
102-
uri = responseData.info.more_records;
103101
qs.page++;
104102
} while (
105103
responseData.info.more_records !== undefined &&

0 commit comments

Comments
 (0)
Please sign in to comment.