Fixed bugs concerning posts

ref #13
This commit is contained in:
2020-12-05 10:59:15 +01:00
parent ef54dd5e9c
commit aca13f7308
5 changed files with 11 additions and 26 deletions

View File

@@ -55,7 +55,8 @@ export class RunnerController {
return error;
}
return new ResponseRunner(await this.runnerRepository.save(runner));
runner = await this.runnerRepository.save(runner)
return new ResponseRunner(await this.runnerRepository.findOne(runner, { relations: ['scans', 'group'] }));
}
@Put('/:id')