Moved runner teams to the new put mechanism

ref #39
This commit is contained in:
2020-12-20 17:25:41 +01:00
parent cf583a22fa
commit 24de82f6df
2 changed files with 6 additions and 8 deletions

View File

@@ -82,7 +82,7 @@ export class RunnerTeamController {
throw new RunnerTeamIdsNotMatchingError();
}
await this.runnerTeamRepository.update(oldRunnerTeam, await runnerTeam.toRunnerTeam());
await this.runnerTeamRepository.save(await runnerTeam.updateRunnerTeam(oldRunnerTeam));
return new ResponseRunnerTeam(await this.runnerTeamRepository.findOne({ id: runnerTeam.id }, { relations: ['parentGroup', 'contact'] }));
}