set schedule to optional in match request

This commit is contained in:
Sylvain Briat 2024-03-28 17:13:57 +01:00 committed by sbriat
parent 2ce2a46c95
commit 4fd2950027
1 changed files with 2 additions and 2 deletions

View File

@ -57,9 +57,9 @@ export class MatchRequestDto {
@Type(() => ScheduleItemDto)
@IsArray()
@ArrayMinSize(1)
@IsOptional()
@ValidateNested({ each: true })
schedule: ScheduleItemDto[];
schedule?: ScheduleItemDto[];
@IsOptional()
@IsInt()