First part of the permission return (buggy!)

ref #79
This commit is contained in:
niggl committed 2021-01-08 19:32:11 +01:00
1 parent 3c37aafe1f
commit f3cd1380be
4 files changed
+22 -22

No files matched your search

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