From 511334e49ba415581243dcd494726f84bac8e1d4 Mon Sep 17 00:00:00 2001
From: Ronnie Friman <L4168@student.jamk.fi>
Date: Tue, 2 Jul 2019 19:24:55 +0300
Subject: [PATCH] added json validation for editgame flagboxes

---
 src/game/game.dto.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/game/game.dto.ts b/src/game/game.dto.ts
index 5549aa0..913b6c0 100644
--- a/src/game/game.dto.ts
+++ b/src/game/game.dto.ts
@@ -43,7 +43,8 @@ export class GameDTO {
   @ValidateNested()
   @Type(() => FactionDTO)
   factions?: FactionDTO[];
-  @Allow()
+  @ValidateNested()
+  @Type(() => FlagboxDTO)
   objective_points?: FlagboxDTO[];
 }
 
-- 
GitLab