mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Fix bug on Paddle-Node with returning all users
This commit is contained in:
@@ -58,8 +58,9 @@ export async function paddleApiRequestAllItems(this: IHookFunctions | IExecuteFu
|
|||||||
do {
|
do {
|
||||||
responseData = await paddleApiRequest.call(this, endpoint, method, body, query);
|
responseData = await paddleApiRequest.call(this, endpoint, method, body, query);
|
||||||
returnData.push.apply(returnData, responseData[propertyName]);
|
returnData.push.apply(returnData, responseData[propertyName]);
|
||||||
|
body.page++;
|
||||||
} while (
|
} while (
|
||||||
responseData[propertyName].length !== 0
|
responseData[propertyName].length !== 0 && responseData[propertyName].length === body.results_per_page
|
||||||
);
|
);
|
||||||
|
|
||||||
return returnData;
|
return returnData;
|
||||||
|
|||||||
Reference in New Issue
Block a user