Reenabled addresses in org responses
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
ref #68
This commit is contained in:
parent
56c6a7efb0
commit
1e2de7656e
@ -1,7 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
IsArray,
|
IsArray,
|
||||||
IsNotEmpty,
|
|
||||||
IsObject
|
IsObject,
|
||||||
|
IsOptional
|
||||||
} from "class-validator";
|
} from "class-validator";
|
||||||
import { Address } from '../entities/Address';
|
import { Address } from '../entities/Address';
|
||||||
import { RunnerOrganisation } from '../entities/RunnerOrganisation';
|
import { RunnerOrganisation } from '../entities/RunnerOrganisation';
|
||||||
@ -17,7 +18,7 @@ export class ResponseRunnerOrganisation extends ResponseRunnerGroup {
|
|||||||
* The runnerOrganisation's address.
|
* The runnerOrganisation's address.
|
||||||
*/
|
*/
|
||||||
@IsObject()
|
@IsObject()
|
||||||
@IsNotEmpty()
|
@IsOptional()
|
||||||
address?: Address;
|
address?: Address;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -32,7 +33,7 @@ export class ResponseRunnerOrganisation extends ResponseRunnerGroup {
|
|||||||
*/
|
*/
|
||||||
public constructor(org: RunnerOrganisation) {
|
public constructor(org: RunnerOrganisation) {
|
||||||
super(org);
|
super(org);
|
||||||
// this.address = org.address;
|
this.address = org.address;
|
||||||
this.teams = org.teams;
|
this.teams = org.teams;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user