diff --git a/lib/api/report-schedules.ts b/lib/api/report-schedules.ts index 44b5e92..a148de0 100644 --- a/lib/api/report-schedules.ts +++ b/lib/api/report-schedules.ts @@ -42,8 +42,8 @@ export interface UpdateReportScheduleRequest { } export async function listReportSchedules(siteId: string): Promise { - const res = await apiRequest<{ schedules: ReportSchedule[] }>(`/sites/${siteId}/report-schedules`) - return res?.schedules ?? [] + const res = await apiRequest<{ report_schedules: ReportSchedule[] }>(`/sites/${siteId}/report-schedules`) + return res?.report_schedules ?? [] } export async function createReportSchedule(siteId: string, data: CreateReportScheduleRequest): Promise {