latest work #20

Merged
philipp merged 233 commits from dev into main 2020-12-09 18:49:33 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit c4f02023b9 - Show all commits

View File

@ -23,4 +23,7 @@ export class RunnerOrganisation extends RunnerGroup {
*/
@OneToMany(() => RunnerTeam, team => team.parentGroup, { nullable: true })
teams: RunnerTeam[];
public async getTeams() {
return await getConnectionManager().get().getRepository(RunnerTeam).find({ parentGroup: this });
}
}

View File

@ -22,7 +22,6 @@ export class RunnerTeam extends RunnerGroup {
* Returns all runners associated with this team.
*/
public async getRunners() {
let runnerRepo = await getConnectionManager().get().getRepository(Runner);
return await runnerRepo.find({ group: this });
return await getConnectionManager().get().getRepository(Runner).find({ group: this });
}
}