mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Fix error when updating website.
This commit is contained in:
parent
82d1f1ba2c
commit
371425ab60
@ -41,7 +41,7 @@ export default async (
|
|||||||
if (req.method === 'POST') {
|
if (req.method === 'POST') {
|
||||||
const { ...data } = req.body;
|
const { ...data } = req.body;
|
||||||
|
|
||||||
if (!data.userId && !data.teamId) {
|
if (data.userId && data.userId === null && data.teamId && data.teamId === null) {
|
||||||
badRequest(res, 'A website must be assigned to a User or Team.');
|
badRequest(res, 'A website must be assigned to a User or Team.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,6 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "preserve"
|
"jsx": "preserve"
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "queries/admin/website/getAllWebsites.ts"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user