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

add image to newGameDTO

parent 36a5ecb9
No related branches found
No related tags found
3 merge requests!59Development to master,!58Development to testing,!56Cluster update to Development
This commit is part of merge request !58. Comments created here will be created in the context of that merge request.
...@@ -62,15 +62,17 @@ export class newGameDTO { ...@@ -62,15 +62,17 @@ export class newGameDTO {
@IsNotEmpty() @IsNotEmpty()
@Length(1, 255) @Length(1, 255)
desc: string; desc: string;
@IsNotEmpty() @ValidateNested()
@Validate(CenterJSON) @Type(() => CenterDTO)
center: JSON; center: CenterDTO;
@IsDateString() @IsDateString()
@IsNotEmpty() @IsNotEmpty()
startdate: string; startdate: string;
@IsDateString() @IsDateString()
@IsNotEmpty() @IsNotEmpty()
enddate: string; enddate: string;
@Length(0, 65)
image: string;
} }
export class GameStateDTO { export class GameStateDTO {
......
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