We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2c3ab4 commit 1e103b5Copy full SHA for 1e103b5
1 file changed
src/backend/src/services/teams.services.ts
@@ -194,7 +194,7 @@ export default class TeamsService {
194
195
// checking to see if any other teams have the new head as their current head or lead
196
const newHeadTeam = await prisma.team.findFirst({
197
- where: { OR: [{ headId }, { leads: { some: { userId: headId } } }] }
+ where: { headId }
198
});
199
200
if (newHeadTeam) throw new HttpException(400, 'The new team head must not be a head or lead of another team');
0 commit comments