Shortened db call

ref #13
This commit is contained in:
2020-12-04 17:51:27 +01:00
parent ca917b0577
commit c4f02023b9
2 changed files with 4 additions and 2 deletions

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