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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user