mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
🐛 Fix empty response for getAll
This commit is contained in:
parent
b8df1f2c2c
commit
09bb459cb2
|
@ -84,6 +84,7 @@ export async function zohoApiRequestAllItems(
|
||||||
|
|
||||||
do {
|
do {
|
||||||
responseData = await zohoApiRequest.call(this, method, endpoint, body, qs, uri);
|
responseData = await zohoApiRequest.call(this, method, endpoint, body, qs, uri);
|
||||||
|
if (!responseData) return [];
|
||||||
uri = responseData.info.more_records;
|
uri = responseData.info.more_records;
|
||||||
returnData.push.apply(returnData, responseData['data']);
|
returnData.push.apply(returnData, responseData['data']);
|
||||||
qs.page++;
|
qs.page++;
|
||||||
|
|
Loading…
Reference in a new issue