MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / isScheduleInputValid

Function isScheduleInputValid

packages/server/src/services/schedule/utils.ts:601–605  ·  view source on GitHub ↗
(mode: ScheduleInputMode, defaultInput?: string, scheduleFormInputTypes?: any[])

Source from the content-addressed store, hash-verified

599 *
600 */
601export const isScheduleInputValid = (mode: ScheduleInputMode, defaultInput?: string, scheduleFormInputTypes?: any[]): boolean => {
602 if (mode === 'none') return true
603 if (mode === 'form') return Array.isArray(scheduleFormInputTypes) && scheduleFormInputTypes.length > 0
604 return !!defaultInput && defaultInput !== '<p></p>'
605}
606
607/**
608 * Determines if a schedule can be enabled based on its inputs: cron validity,

Callers 3

getScheduleStatusFunction · 0.90
utils.test.tsFile · 0.90
canScheduleEnableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected