Reenabled addresses in org responses
continuous-integration/drone/pr Build is passing Details

ref #68
This commit is contained in:
Nicolai Ort 2021-01-02 20:03:02 +01:00
parent 56c6a7efb0
commit 1e2de7656e
1 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,8 @@
import {
IsArray,
IsNotEmpty,
IsObject
IsObject,
IsOptional
} from "class-validator";
import { Address } from '../entities/Address';
import { RunnerOrganisation } from '../entities/RunnerOrganisation';
@ -17,7 +18,7 @@ export class ResponseRunnerOrganisation extends ResponseRunnerGroup {
* The runnerOrganisation's address.
*/
@IsObject()
@IsNotEmpty()
@IsOptional()
address?: Address;
/**
@ -32,7 +33,7 @@ export class ResponseRunnerOrganisation extends ResponseRunnerGroup {
*/
public constructor(org: RunnerOrganisation) {
super(org);
// this.address = org.address;
this.address = org.address;
this.teams = org.teams;
}
}