mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
small fixes
This commit is contained in:
@@ -85,9 +85,10 @@ export const updateTeam = async (req: Request, res: Response) => {
|
||||
discipline: { connect: { pid: body.disciplineId } },
|
||||
leaderEmail: body.leaderEmail,
|
||||
},
|
||||
select: basicTeam,
|
||||
});
|
||||
|
||||
res.status(204).json({ type: "success", payload: { team } });
|
||||
res.status(200).json({ type: "success", payload: { team } });
|
||||
} catch (e) {
|
||||
if (e instanceof Prisma.PrismaClientKnownRequestError && e.code === "P2025") {
|
||||
throw new NotFoundError("team", pid);
|
||||
|
||||
Reference in New Issue
Block a user