Skip to content

Commit 7ab9da8

Browse files
committed
fix: Deno.cron(.format())
1 parent 623d524 commit 7ab9da8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/cronx.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,12 @@ export function scheduleCronWithFunction(
320320

321321
cconsole.setLogLevel(logLevel);
322322

323-
Deno.cron(label, exp.toDenoCronSchedule(), async () => {
323+
const DENO_FORMAT = {
324+
sundayIs: 1,
325+
toOffset: 0,
326+
};
327+
328+
Deno.cron(label, exp.format(DENO_FORMAT), async () => {
324329
cconsole.debug();
325330
cconsole.debug("Running function job: " + label);
326331
cconsole.debug();

0 commit comments

Comments
 (0)