mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
fixed review suggestions
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user