Remove unused code.

This commit is contained in:
Brian Cao 2023-04-13 20:33:21 -07:00
parent ef324fdf73
commit baa6d8486b
2 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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))) {