diff --git a/src/Controllers/role.controller.ts b/src/Controllers/role.controller.ts index 63721fe..a326a3e 100644 --- a/src/Controllers/role.controller.ts +++ b/src/Controllers/role.controller.ts @@ -93,3 +93,9 @@ export async function assignParticipantToRole(req: Request<{ pid: string }>, res }, }); } + +export async function deleteRolesFromTeam(teamPid: string){ + await prisma.role.deleteMany({ + where: { team: { pid: teamPid, } } + }); +} \ No newline at end of file