fix: sanitize report keys before serializing schedule
This commit is contained in:
parent
00c75d14ee
commit
a2c264a3ea
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ export async function PATCH(request: NextRequest, ctx: Ctx) {
|
||||||
item: serializeSchedule(
|
item: serializeSchedule(
|
||||||
{
|
{
|
||||||
...updated,
|
...updated,
|
||||||
reportKeys: (updated.reportKeys as string[] | null) ?? [],
|
reportKeys: sanitizeReportKeys((updated.reportKeys as string[] | null) ?? []),
|
||||||
recipients: (updated.recipients as string[] | null) ?? [],
|
recipients: (updated.recipients as string[] | null) ?? [],
|
||||||
},
|
},
|
||||||
[]
|
[]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue