parent
e5b6f650b2
commit
10f98e9c99
@ -1,7 +1,7 @@
|
|||||||
import { IsNotEmpty, IsObject } from "class-validator";
|
import { IsNotEmpty, IsObject } from "class-validator";
|
||||||
import { RunnerOrganisation } from '../entities/RunnerOrganisation';
|
|
||||||
import { RunnerTeam } from '../entities/RunnerTeam';
|
import { RunnerTeam } from '../entities/RunnerTeam';
|
||||||
import { ResponseRunnerGroup } from './ResponseRunnerGroup';
|
import { ResponseRunnerGroup } from './ResponseRunnerGroup';
|
||||||
|
import { ResponseRunnerOrganisation } from './ResponseRunnerOrganisation';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the runnerTeam response.
|
* Defines the runnerTeam response.
|
||||||
@ -13,7 +13,7 @@ export class ResponseRunnerTeam extends ResponseRunnerGroup {
|
|||||||
*/
|
*/
|
||||||
@IsObject()
|
@IsObject()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
parentGroup: RunnerOrganisation;
|
parentGroup: ResponseRunnerOrganisation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a ResponseRunnerTeam object from a runnerTeam.
|
* Creates a ResponseRunnerTeam object from a runnerTeam.
|
||||||
@ -21,6 +21,6 @@ export class ResponseRunnerTeam extends ResponseRunnerGroup {
|
|||||||
*/
|
*/
|
||||||
public constructor(team: RunnerTeam) {
|
public constructor(team: RunnerTeam) {
|
||||||
super(team);
|
super(team);
|
||||||
this.parentGroup = team.parentGroup;
|
this.parentGroup = team.parentGroup.toResponse();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user