add deleteRolesFromTeam

This commit is contained in:
Laurin
2022-05-28 16:52:35 +02:00
parent 2a33b703bc
commit 55eab7000a
+6
View File
@@ -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, } }
});
}