schedule icon indicating copy to clipboard operation
schedule copied to clipboard

fix(schedule): fix cron expression enum for "EVERY_YEAR"

Open wkasunsampath opened this issue 1 year ago • 0 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
  • [x] Tests for the changes have been added (for bug fixes / features)
  • [x] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • [x] Bugfix
  • [ ] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Other... Please describe:

What is the current behavior?

Current implementation for EVERY_YEAR is "0 0 1 0 *" which is incorrect. It was fixed by adding "0 0 1 1 *".

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • [ ] Yes
  • [x] No

Other information

wkasunsampath avatar Feb 11 '24 05:02 wkasunsampath