MCPcopy Create free account
hub / github.com/ShipSecAI/studio / fetchScheduleById

Function fetchScheduleById

frontend/src/services/api.ts:159–169  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

157});
158
159async function fetchScheduleById(id: string): Promise<WorkflowSchedule> {
160 const response = await apiClient.getSchedule(id);
161 if (response.error) {
162 throw new Error('Failed to fetch schedule');
163 }
164 const schedule = (response.data ?? null) as WorkflowSchedule | null;
165 if (!schedule) {
166 throw new Error('Schedule not found');
167 }
168 return schedule;
169}
170
171/**
172 * API Service

Callers 1

api.tsFile · 0.85

Calls 1

getScheduleMethod · 0.80

Tested by

no test coverage detected