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

@@ -276,6 +276,9 @@ export class Wordpress implements INodeType {
if (options.sticky) {
qs.sticky = options.sticky as boolean;
}
if (options.status) {
qs.status = options.status as string;
}
if (returnAll === true) {
responseData = await wordpressApiRequestAllItems.call(this, 'GET', '/posts', {}, qs);
} else {