fix: moved cron schedule calculator to utils for better reusability
This commit is contained in:
parent
7e2ffb42fe
commit
aa61e00af6
4 changed files with 3 additions and 3 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue