diff --git a/src/modules/user/auth/auth.service.ts b/src/modules/user/auth/auth.service.ts index 44d58a8..3160eea 100644 --- a/src/modules/user/auth/auth.service.ts +++ b/src/modules/user/auth/auth.service.ts @@ -347,7 +347,6 @@ export class AuthService { !body.firstName && !body.lastName && !body.age && - !body.email && !body.address && !body.phone && !body.zipcode && @@ -366,7 +365,6 @@ export class AuthService { firstName: body.firstName, lastName: body.lastName, age: body.age, - email: body.email, address: body.address, phone: body.phone, zipcode: body.zipcode, diff --git a/src/modules/user/dtos/user-update.dto.ts b/src/modules/user/dtos/user-update.dto.ts index aabb498..d5a44c9 100644 --- a/src/modules/user/dtos/user-update.dto.ts +++ b/src/modules/user/dtos/user-update.dto.ts @@ -4,7 +4,6 @@ import { MaxLength, IsNumber, IsPositive, - IsEmail, IsPhoneNumber, IsUrl, IsEnum, @@ -53,13 +52,6 @@ export class UpdateUserDto { @IsPositive({ message: AuthExpectionKeys.InvalidAge }) age: number; - @IsOptional() - @ApiProperty({ - required: false, - }) - @IsEmail({}, { message: AuthExpectionKeys.InvalidEmail }) - email: string; - @IsOptional() @ApiProperty({ required: false,