patched issues found during testing

This commit is contained in:
Laurin
2022-06-03 19:57:43 +02:00
parent 569695245f
commit 0f0da062c6
12 changed files with 74 additions and 36 deletions
-2
View File
@@ -91,8 +91,6 @@ export async function assignParticipantToRole(req: Request<{ pid: string }>, res
const { participantPid } = zBody.data;
const rolePid = req.params.pid;
requireResponsibleForParticipant(req.teamleader, participantPid);
const schema = await prisma.role.findFirst({
where: { pid: rolePid, team: { participants: { some: { pid: participantPid } } } },
select: { participant: { select: { pid: true, firstName: true, lastName: true } } },