Updating cron validator to use a different preset, the node-cron validator we were using did 0-11 months rather than 1-12 which bull utilises.
This commit is contained in:
parent
1c2f009f6e
commit
d713693883
|
@ -48,7 +48,7 @@ export function validate(
|
|||
cronExpression: string
|
||||
): { valid: false; err: string[] } | { valid: true } {
|
||||
const result = cronValidate(cronExpression, {
|
||||
preset: "npm-node-cron",
|
||||
preset: "npm-cron-schedule",
|
||||
override: {
|
||||
useSeconds: false,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue