fix: moved cron schedule calculator to utils for better reusability

This commit is contained in:
Ida 2026-05-14 11:57:45 +02:00
parent 5f5df47e25
commit 8c2f61670c
4 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ import {
scheduleSpecFromParams,
scheduleSpecToPersistentJson,
type ScheduleSpec,
} from '../runtime/scheduleCron';
} from '../../../../utils/scheduleCron';
import { useLanguage } from '../../../../providers/language/LanguageContext';
import { toApiGraph } from '../shared/graphUtils';

View file

@ -11,7 +11,7 @@ import {
scheduleSpecFromParams,
scheduleSpecToPersistentJson,
type ScheduleSpec,
} from '../runtime/scheduleCron';
} from '../../../../utils/scheduleCron';
export const ScheduleStartNodeConfig: React.FC<NodeConfigRendererProps> = ({ params, updateParam }) => {
const spec = useMemo(

View file

@ -7,7 +7,7 @@ import {
MINUTE_SELECT_OPTIONS,
WEEKDAYS_MO_SO,
type ScheduleSpec,
} from '../FlowEditor/nodes/runtime/scheduleCron';
} from '../../utils/scheduleCron';
import { useLanguage } from '../../providers/language/LanguageContext';
import styles from './SchedulePlanner.module.css';