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:
mike12345567 2024-11-15 13:09:47 +00:00
parent 1c2f009f6e
commit d713693883
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export function validate(
cronExpression: string cronExpression: string
): { valid: false; err: string[] } | { valid: true } { ): { valid: false; err: string[] } | { valid: true } {
const result = cronValidate(cronExpression, { const result = cronValidate(cronExpression, {
preset: "npm-node-cron", preset: "npm-cron-schedule",
override: { override: {
useSeconds: false, useSeconds: false,
}, },