From 1e2de7656e36405b9b15d4e0a7004e8b14e61c85 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 2 Jan 2021 20:03:02 +0100 Subject: [PATCH] Reenabled addresses in org responses ref #68 --- src/models/responses/ResponseRunnerOrganisation.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/models/responses/ResponseRunnerOrganisation.ts b/src/models/responses/ResponseRunnerOrganisation.ts index 8e31a71..69ccaf1 100644 --- a/src/models/responses/ResponseRunnerOrganisation.ts +++ b/src/models/responses/ResponseRunnerOrganisation.ts @@ -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; } }