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:
Tom
2022-03-13 11:42:23 +01:00
committed by GitHub
parent 535dfe0838
commit 4d4db7f805
4 changed files with 110 additions and 75 deletions

View File

@@ -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
);