diff --git a/src/app/api/reports/schedules/route.ts b/src/app/api/reports/schedules/route.ts index a8f0e50..30b70a4 100644 --- a/src/app/api/reports/schedules/route.ts +++ b/src/app/api/reports/schedules/route.ts @@ -40,7 +40,7 @@ export async function GET() { serializeSchedule( { ...schedule, - reportKeys: (schedule.reportKeys as string[] | null) ?? [], + reportKeys: sanitizeReportKeys((schedule.reportKeys as string[] | null) ?? []), recipients: (schedule.recipients as string[] | null) ?? [], }, runBySchedule[schedule.id] ?? []