MCPcopy Index your code
hub / github.com/simstudioai/sim / getMissingConfigError

Function getMissingConfigError

apps/sim/lib/workflows/schedules/validation.ts:81–98  ·  view source on GitHub ↗

* Get human-readable error message for missing schedule configuration

(scheduleType: string)

Source from the content-addressed store, hash-verified

79 * Get human-readable error message for missing schedule configuration
80 */
81function getMissingConfigError(scheduleType: string): string {
82 switch (scheduleType) {
83 case 'minutes':
84 return 'Minutes interval is required for minute-based schedules'
85 case 'hourly':
86 return 'Minute value is required for hourly schedules'
87 case 'daily':
88 return 'Time is required for daily schedules'
89 case 'weekly':
90 return 'Day and time are required for weekly schedules'
91 case 'monthly':
92 return 'Day and time are required for monthly schedules'
93 case 'custom':
94 return 'Cron expression is required for custom schedules'
95 default:
96 return 'Schedule type is required'
97 }
98}
99
100/**
101 * Find schedule blocks in a workflow's blocks

Callers 1

validateScheduleBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected