Alpha Release 0.3.0 #122

Merged
niggl merged 42 commits from dev into main 2021-01-24 17:57:38 +00:00
Showing only changes of commit 6469e3bc97 - Show all commits

View File

@ -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;
}
}