mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 17:44:54 +00:00
Compare commits
3 Commits
task/add-p
...
9254db08f9
| Author | SHA1 | Date | |
|---|---|---|---|
| 9254db08f9 | |||
| b9c4308d1c | |||
| 87c380ab6f |
@ -7,8 +7,8 @@ export class BookingRequestDto {
|
||||
example: '07-2025',
|
||||
})
|
||||
@IsNotEmpty()
|
||||
@Matches(/^(0[1-9]|1[0-2])\/\d{4}$/, {
|
||||
message: 'Date must be in MM-YYYY format',
|
||||
@Matches(/^(0[1-9]|1[0-2])\-\d{4}$/, {
|
||||
message: 'Date must be in MM/YYYY format',
|
||||
})
|
||||
month: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user