mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08: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:
parent
6b6710439b
commit
96813fcc05
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue