mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 22:14:55 +00:00
Add optional scheduleList property to AddDoorLockOnlineDto class
This commit is contained in:
@ -6,6 +6,7 @@ import {
|
||||
ValidateNested,
|
||||
IsEnum,
|
||||
Length,
|
||||
IsOptional,
|
||||
} from 'class-validator';
|
||||
import { Type } from 'class-transformer';
|
||||
import { WorkingDays } from '@app/common/constants/working-days';
|
||||
@ -79,6 +80,7 @@ export class AddDoorLockOnlineDto {
|
||||
})
|
||||
@IsArray()
|
||||
@ValidateNested({ each: true })
|
||||
@IsOptional()
|
||||
@Type(() => ScheduleDto)
|
||||
public scheduleList: ScheduleDto[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user