First part of the permission return (buggy!)

ref #79
This commit is contained in:
2021-01-08 19:32:04 +01:00
parent 3c37aafe1f
commit f3cd1380be
4 changed files with 22 additions and 22 deletions

View File

@@ -27,7 +27,7 @@ export class RunnerController {
@OpenAPI({ description: 'Lists all runners from all teams/orgs. <br> This includes the runner\'s group and distance ran.' })
async getAll() {
let responseRunners: ResponseRunner[] = new Array<ResponseRunner>();
const runners = await this.runnerRepository.find({ relations: ['scans', 'group'] });
const runners = await this.runnerRepository.find({ relations: ['scans', 'group', 'group.permissions', 'permissions'] });
runners.forEach(runner => {
responseRunners.push(new ResponseRunner(runner));
});