mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-08-25 20:49:40 +00:00
@ -7,8 +7,8 @@ export class BookingRequestDto {
|
|||||||
example: '07-2025',
|
example: '07-2025',
|
||||||
})
|
})
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@Matches(/^(0[1-9]|1[0-2])\/\d{4}$/, {
|
@Matches(/^(0[1-9]|1[0-2])\-\d{4}$/, {
|
||||||
message: 'Date must be in MM-YYYY format',
|
message: 'Date must be in MM/YYYY format',
|
||||||
})
|
})
|
||||||
month: string;
|
month: string;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user