feat(Wordpress Node): Add Status option to Get All operation of Posts resource
* Wordpress: Add status to getAll: post * Fix status name used in query string * Alphabetically order options for getAll: post * 🐛 Fixed pagination issue when there is no posts for the status * ✨ Updated password field to use a password type Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
This commit is contained in:
@@ -60,6 +60,7 @@ export async function wordpressApiRequestAllItems(this: IExecuteFunctions | ILoa
|
||||
returnData.push.apply(returnData, responseData.body);
|
||||
} while (
|
||||
responseData.headers['x-wp-totalpages'] !== undefined &&
|
||||
responseData.headers['x-wp-totalpages'] !== '0' &&
|
||||
parseInt(responseData.headers['x-wp-totalpages'], 10) !== query.page
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user