parent
10f98e9c99
commit
6469e3bc97
@ -48,7 +48,8 @@ export class CreateSelfServiceRunner extends CreateParticipant {
|
||||
return group;
|
||||
}
|
||||
const team = await getConnection().getRepository(RunnerTeam).findOne({ id: this.team }, { relations: ["parentGroup"] });
|
||||
if (team.parentGroup.id != group.id || !team) { throw new RunnerTeamNotFoundError(); }
|
||||
if (!team) { throw new RunnerTeamNotFoundError(); }
|
||||
if (team.parentGroup.id != group.id) { throw new RunnerTeamNotFoundError(); }
|
||||
return team;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user