Reenabled addresses in org responses
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
ref #68
This commit is contained in:
parent
56c6a7efb0
commit
1e2de7656e
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue