module customers
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsOptional, IsString, Length } from 'class-validator';
|
||||
import { IsOptional, IsString, Length, Matches } from 'class-validator';
|
||||
|
||||
export class UpdateUserDto {
|
||||
@IsOptional()
|
||||
@@ -10,4 +10,8 @@ export class UpdateUserDto {
|
||||
@IsString()
|
||||
@Length(1, 100)
|
||||
lastName?: string;
|
||||
|
||||
@IsOptional()
|
||||
@Matches(/^09\d{9}$/)
|
||||
mobile?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user