Skip to content

Commit c93e603

Browse files
committed
#1182 - fix error msg
1 parent 9e7d26c commit c93e603

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/src/services/teams.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export default class TeamsService {
203203
where: { teamName }
204204
});
205205

206-
if (duplicateName) throw new HttpException(400, 'The new team head must not be a head or lead of another team');
206+
if (duplicateName) throw new HttpException(400, 'The new team name must not be the name of another team');
207207

208208
const createdTeam = await prisma.team.create({
209209
data: {

0 commit comments

Comments
 (0)