Ignore websiteId when updating reports
This commit is contained in:
1 parent
8c2ce02770
commit
4e3e6b3bd7
1 file changed
+3
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user