Skip to content

Commit

Permalink
fix: make @monthly macro work correctly (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachsents authored Aug 30, 2024
1 parent 11a23c9 commit ba60d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cron-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const weekdayConstraint: IConstraint = {
const timeNicknames: Record<string, string | undefined> = {
'@yearly': '0 0 1 1 *',
'@annually': '0 0 1 1 *',
'@monthly': '0 0 1 1 *',
'@monthly': '0 0 1 * *',
'@weekly': '0 0 * * 0',
'@daily': '0 0 * * *',
'@hourly': '0 * * * *',
Expand Down
2 changes: 1 addition & 1 deletion test/cron-parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ describe('parseCronExpression', () => {

test('Should parse @monthly', () => {
expect(parseCronExpression('@MONTHLY')).toStrictEqual(
parseCronExpression('0 0 1 1 *'),
parseCronExpression('0 0 1 * *'),
)
})

Expand Down

0 comments on commit ba60d04

Please sign in to comment.