diff --git a/src/commands/cron/jobs/create.ts b/src/commands/cron/jobs/create.ts index 9abfc5d..4d29a20 100644 --- a/src/commands/cron/jobs/create.ts +++ b/src/commands/cron/jobs/create.ts @@ -143,7 +143,7 @@ export default class JobsCreate extends BaseCommand { }, { type: 'number', name: 'jitter', - message: 'What is the jitter?', + message: 'What is the jitter (in minutes)?', default: 0, validate(input) { return validateAnswer('Jitter', input) diff --git a/src/commands/cron/jobs/index.ts b/src/commands/cron/jobs/index.ts index 0c9ab68..a839bc0 100644 --- a/src/commands/cron/jobs/index.ts +++ b/src/commands/cron/jobs/index.ts @@ -71,7 +71,7 @@ export default class JobsList extends BaseCommand { return job.Retries || '-' }}, Jitter: {header: 'Jitter', extended: true, get: (job:Job) => { - return job.Retries || '-' + return job.Jitter || '-' }}, CreatedAt: {header: 'Created', extended: true, get: (job:Job) => { return formatDate(job.CreatedAt) diff --git a/src/commands/cron/jobs/update.ts b/src/commands/cron/jobs/update.ts index a5b6678..6828f1d 100644 --- a/src/commands/cron/jobs/update.ts +++ b/src/commands/cron/jobs/update.ts @@ -15,8 +15,8 @@ export default class JobsUpdate extends BaseCommand { static description = 'update a job on Cron To Go\nRead more about this feature at https://devcenter.heroku.com/articles/crontogo' static examples = [ - '$ heroku cron:jobs:create -a your-app', - '$ heroku cron:jobs:create --app your-app', + '$ heroku cron:jobs:update -a your-app', + '$ heroku cron:jobs:update --app your-app', ] static flags = {