From 382bdce73f034337df24bbc19ab21a2e55c06be4 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 26 Oct 2024 00:46:54 +0530 Subject: [PATCH] feat: export --- server/src/utils/schedule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/utils/schedule.ts b/server/src/utils/schedule.ts index 2cc02bfc..7029cea6 100644 --- a/server/src/utils/schedule.ts +++ b/server/src/utils/schedule.ts @@ -2,7 +2,7 @@ import cronParser from 'cron-parser'; import moment from 'moment-timezone'; // Function to compute next run date based on the cron pattern and timezone -function computeNextRun(cronExpression: string, timezone: string) { +export function computeNextRun(cronExpression: string, timezone: string) { try { const interval = cronParser.parseExpression(cronExpression, { tz: timezone }); return interval.next().toDate();