Moved runners to the new put mechanism

ref #39
This commit is contained in:
2020-12-20 17:27:21 +01:00
parent 24de82f6df
commit cc68948a20
2 changed files with 10 additions and 13 deletions

View File

@@ -81,7 +81,7 @@ export class RunnerController {
throw new RunnerIdsNotMatchingError();
}
await this.runnerRepository.update(oldRunner, await runner.toRunner());
await this.runnerRepository.save(await runner.updateRunner(oldRunner));
return new ResponseRunner(await this.runnerRepository.findOne({ id: id }, { relations: ['scans', 'group'] }));
}