@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user