From d713693883706d882a0a2377edd6dc45177e41b3 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 15 Nov 2024 13:09:47 +0000 Subject: [PATCH] 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. --- packages/shared-core/src/helpers/cron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared-core/src/helpers/cron.ts b/packages/shared-core/src/helpers/cron.ts index 15abda3483..a13c19c265 100644 --- a/packages/shared-core/src/helpers/cron.ts +++ b/packages/shared-core/src/helpers/cron.ts @@ -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, },