Fix error when updating website.
This commit is contained in:
1 parent
82d1f1ba2c
commit
371425ab60
2 files changed
+2
-2
No files matched your search
@@ -41,7 +41,7 @@ export default async (
|
||||
if (req.method === 'POST') {
|
||||
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.');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user