From d2f1a561ee432fd8ffc31457575b2bec6f1649b7 Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Mon, 20 Nov 2023 16:53:41 +0000 Subject: [PATCH] Updated allowed `status` for random post 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. --- commands/random-post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random-post.js b/commands/random-post.js index eb64640e..9c42e7cf 100644 --- a/commands/random-post.js +++ b/commands/random-post.js @@ -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', {