From 10f98e9c992b1fb45334e65082d7c47af214b6ac Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 21 Jan 2021 19:49:11 +0100 Subject: [PATCH] Bugfix: turned old entity in response to responseclass ref #112 --- src/models/responses/ResponseRunnerTeam.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/responses/ResponseRunnerTeam.ts b/src/models/responses/ResponseRunnerTeam.ts index 0a15302..684005e 100644 --- a/src/models/responses/ResponseRunnerTeam.ts +++ b/src/models/responses/ResponseRunnerTeam.ts @@ -1,7 +1,7 @@ import { IsNotEmpty, IsObject } from "class-validator"; -import { RunnerOrganisation } from '../entities/RunnerOrganisation'; import { RunnerTeam } from '../entities/RunnerTeam'; import { ResponseRunnerGroup } from './ResponseRunnerGroup'; +import { ResponseRunnerOrganisation } from './ResponseRunnerOrganisation'; /** * Defines the runnerTeam response. @@ -13,7 +13,7 @@ export class ResponseRunnerTeam extends ResponseRunnerGroup { */ @IsObject() @IsNotEmpty() - parentGroup: RunnerOrganisation; + parentGroup: ResponseRunnerOrganisation; /** * Creates a ResponseRunnerTeam object from a runnerTeam. @@ -21,6 +21,6 @@ export class ResponseRunnerTeam extends ResponseRunnerGroup { */ public constructor(team: RunnerTeam) { super(team); - this.parentGroup = team.parentGroup; + this.parentGroup = team.parentGroup.toResponse(); } }