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