fixed review suggestions

This commit is contained in:
Laurin
2022-06-09 16:23:54 +02:00
committed by La_Felx
parent 474b3f8185
commit 0fea7edb25
4 changed files with 26 additions and 50 deletions
-7
View File
@@ -88,13 +88,6 @@ export const updateTeam = async (req: Request, res: Response) => {
const body = result.data;
try {
requireLeaderOfTeam(req.teamleader, pid);
} catch {
// TODO: DO NOT CATCH THESE ERRORS
return res.status(401).json(createInsufficientPermissionsError("STANDARD"));
}
try {
const team = await prisma.team.update({
where: {