diff --git a/src/game/game.dto.ts b/src/game/game.dto.ts index abf1742d2af2bd9e10eed82b264217af11f96d8c..838b32c2ad00cdb2d80431489031a947f82dc7bd 100644 --- a/src/game/game.dto.ts +++ b/src/game/game.dto.ts @@ -86,16 +86,18 @@ export class FlagboxDTO { objectivePointId: string; @IsString() @IsNotEmpty() - @Length(7) + @Length(7, 7) objectivePointDescription: string; @IsNumber() objectivePointMultiplier: number; + @IsOptional() + data: JSON; } export class FlagboxEventDTO { @IsString() @IsNotEmpty() - @Length(7) + @Length(7, 7) node_id: string; @IsNumber() @Min(0)