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

Function findScheduleBlocks

apps/sim/lib/workflows/schedules/validation.ts:104–108  ·  view source on GitHub ↗
(blocks: Record<string, BlockState>)

Source from the content-addressed store, hash-verified

102 * Only returns enabled schedule blocks (disabled blocks are skipped)
103 */
104export function findScheduleBlocks(blocks: Record<string, BlockState>): BlockState[] {
105 return Object.values(blocks).filter(
106 (block) => block.type === 'schedule' && block.enabled !== false
107 )
108}
109
110/**
111 * Validate a schedule block's configuration

Callers 3

createSchedulesForDeployFunction · 0.90
deploy.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected