Skip to content

Commit

Permalink
Updated allowed status for random post
Browse files Browse the repository at this point in the history
no refs

When using `--status published` with the `random-post` command an error was being
thrown because `published` was not an allowed status. This commit updates the
allowed statuses based on what the API allows.
  • Loading branch information
mike182uk committed Nov 20, 2023
1 parent 31dc621 commit d2f1a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/random-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const setup = (sywac) => {
});
sywac.enumeration('--status', {
defaultValue: 'published',
choices: ['public', 'draft', 'scheduled'],
choices: ['published', 'draft', 'scheduled', 'sent'],
desc: 'Post status'
});
sywac.enumeration('--visibility', {
Expand Down

0 comments on commit d2f1a56

Please sign in to comment.