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