fix: sanitize report keys when listing schedules
This commit is contained in:
parent
a2c264a3ea
commit
fa96768fa9
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ export async function GET() {
|
||||||
serializeSchedule(
|
serializeSchedule(
|
||||||
{
|
{
|
||||||
...schedule,
|
...schedule,
|
||||||
reportKeys: (schedule.reportKeys as string[] | null) ?? [],
|
reportKeys: sanitizeReportKeys((schedule.reportKeys as string[] | null) ?? []),
|
||||||
recipients: (schedule.recipients as string[] | null) ?? [],
|
recipients: (schedule.recipients as string[] | null) ?? [],
|
||||||
},
|
},
|
||||||
runBySchedule[schedule.id] ?? []
|
runBySchedule[schedule.id] ?? []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue