feat: improve attendance scheduling and API validation
This commit is contained in:
@@ -34,6 +34,12 @@ export class CreateScheduleDto {
|
||||
@IsNotEmpty()
|
||||
endTime: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
@Max(1440)
|
||||
attendanceAdvanceMinutes?: number;
|
||||
|
||||
@IsDateString()
|
||||
@IsNotEmpty()
|
||||
startDate: string;
|
||||
@@ -88,6 +94,12 @@ export class UpdateScheduleDto {
|
||||
@Matches(/^\d{2}:\d{2}$/)
|
||||
endTime?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
@Max(1440)
|
||||
attendanceAdvanceMinutes?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsDateString()
|
||||
startDate?: string;
|
||||
|
||||
Reference in New Issue
Block a user