mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
⚡ Fix bug on Paddle-Node with returning all users
This commit is contained in:
parent
5f2d528046
commit
b04769287d
|
@ -58,8 +58,9 @@ export async function paddleApiRequestAllItems(this: IHookFunctions | IExecuteFu
|
|||
do {
|
||||
responseData = await paddleApiRequest.call(this, endpoint, method, body, query);
|
||||
returnData.push.apply(returnData, responseData[propertyName]);
|
||||
body.page++;
|
||||
} while (
|
||||
responseData[propertyName].length !== 0
|
||||
responseData[propertyName].length !== 0 && responseData[propertyName].length === body.results_per_page
|
||||
);
|
||||
|
||||
return returnData;
|
||||
|
|
Loading…
Reference in a new issue