Skip to content

Commit

Permalink
Fix wrong preoprty
Browse files Browse the repository at this point in the history
  • Loading branch information
motymichaely committed Jun 25, 2024
1 parent ba52605 commit eddaec1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/commands/cron/jobs/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/cron/jobs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/commands/cron/jobs/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit eddaec1

Please sign in to comment.