Skip to content
Snippets Groups Projects
Commit 005c9972 authored by Ronnie Friman's avatar Ronnie Friman
Browse files

fix validation for node_id

parent 42bc7b75
No related branches found
No related tags found
3 merge requests!59Development to master,!58Development to testing,!55Flagbox replay
...@@ -86,16 +86,18 @@ export class FlagboxDTO { ...@@ -86,16 +86,18 @@ export class FlagboxDTO {
objectivePointId: string; objectivePointId: string;
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@Length(7) @Length(7, 7)
objectivePointDescription: string; objectivePointDescription: string;
@IsNumber() @IsNumber()
objectivePointMultiplier: number; objectivePointMultiplier: number;
@IsOptional()
data: JSON;
} }
export class FlagboxEventDTO { export class FlagboxEventDTO {
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@Length(7) @Length(7, 7)
node_id: string; node_id: string;
@IsNumber() @IsNumber()
@Min(0) @Min(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment