mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +00:00
🐛 Fix bug with Wordpress pagination (#2172)
* Potential fix for Wordpress API only returning the first 10 items on `wordpressApiRequestAllItems` calls * ⚡ Small improvement to #2097 * ⚡ Change back pagination value Co-authored-by: Jonathan <jonathan.bennetts@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@ export async function wordpressApiRequestAllItems(this: IExecuteFunctions | ILoa
|
||||
returnData.push.apply(returnData, responseData.body);
|
||||
} while (
|
||||
responseData.headers['x-wp-totalpages'] !== undefined &&
|
||||
parseInt(responseData.headers['x-wp-totalpages'], 10) < query.page
|
||||
parseInt(responseData.headers['x-wp-totalpages'], 10) !== query.page
|
||||
);
|
||||
|
||||
return returnData;
|
||||
|
||||
Reference in New Issue
Block a user