Moved runner teams to the new put mechanism

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

No files matched your search

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