Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenneke committed Feb 13, 2025
1 parent 999d04f commit ea65d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/model/nodes/CronNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { nodeDefinition } from '../NodeDefinition.js';
import type { InternalProcessContext } from '../ProcessContext.js';
import type { Inputs, Outputs } from '../GraphProcessor.js';
import { coerceType, coerceTypeOptional } from '../../utils/coerceType.js';
import { parseExpression } from 'cron-parser';
import * as cronParser from 'cron-parser';

type TimeUnit = 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks';
type ScheduleType = 'interval' | 'cron';
Expand Down Expand Up @@ -219,7 +219,7 @@ export class CronNodeImpl extends NodeImpl<CronNode> {
}

if (schedule.type === 'cron') {
const cron = parseExpression(schedule.expression, { currentDate: now });
const cron = cronParser.parseExpression(schedule.expression, { currentDate: now });

const next = cron.next().toDate();
return next;
Expand Down

0 comments on commit ea65d9f

Please sign in to comment.