From 4e3e6b3bd76ef2022c4a0b05bcedfed48b69d08f Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sat, 12 Sep 2026 22:14:34 -0700 Subject: [PATCH] Ignore websiteId when updating reports --- src/app/(compat)/compat/api/reports/[reportId]/route.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/(compat)/compat/api/reports/[reportId]/route.ts b/src/app/(compat)/compat/api/reports/[reportId]/route.ts index 3de9a017f..1673a4265 100644 --- a/src/app/(compat)/compat/api/reports/[reportId]/route.ts +++ b/src/app/(compat)/compat/api/reports/[reportId]/route.ts @@ -37,7 +37,7 @@ export async function POST( } const { reportId } = await params; - const { websiteId, type, name, description, parameters } = body; + const { type, name, description, parameters } = body; const report = await getReport(reportId); @@ -49,8 +49,9 @@ export async function POST( return unauthorized(); } + // Reports cannot be relocated to another website via update. + // The body websiteId is intentionally ignored. const result = await updateReport(reportId, { - websiteId, type, name, description,