mirror of
https://github.com/detleph/server.git
synced 2026-09-08 07:56:18 +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