mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Remove unused code.
This commit is contained in:
parent
ef324fdf73
commit
baa6d8486b
@ -23,9 +23,9 @@ export default async (
|
|||||||
return unauthorized(res);
|
return unauthorized(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
const websites = await deleteTeamWebsite(teamId, websiteId);
|
await deleteTeamWebsite(teamId, websiteId);
|
||||||
|
|
||||||
return ok(res, websites);
|
return ok(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
return methodNotAllowed(res);
|
return methodNotAllowed(res);
|
||||||
|
@ -10,7 +10,6 @@ export interface TeamWebsiteRequestQuery {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface TeamWebsiteRequestBody {
|
export interface TeamWebsiteRequestBody {
|
||||||
teamWebsiteId?: string;
|
|
||||||
websiteIds?: string[];
|
websiteIds?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,9 +20,6 @@ export default async (
|
|||||||
await useAuth(req, res);
|
await useAuth(req, res);
|
||||||
|
|
||||||
const { id: teamId } = req.query;
|
const { id: teamId } = req.query;
|
||||||
const {
|
|
||||||
user: { id: userId },
|
|
||||||
} = req.auth;
|
|
||||||
|
|
||||||
if (req.method === 'GET') {
|
if (req.method === 'GET') {
|
||||||
if (!(await canViewTeam(req.auth, teamId))) {
|
if (!(await canViewTeam(req.auth, teamId))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user