mirror of
https://github.com/detleph/server.git
synced 2026-09-04 00:26:03 +02:00
add deleteRolesFromTeam
This commit is contained in:
@@ -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, } }
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user