Skip to content

Commit

Permalink
fix: removed email from update user path
Browse files Browse the repository at this point in the history
  • Loading branch information
KostaD02 committed May 10, 2024
1 parent 13a81c5 commit 39f653f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/modules/user/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ export class AuthService {
!body.firstName &&
!body.lastName &&
!body.age &&
!body.email &&
!body.address &&
!body.phone &&
!body.zipcode &&
Expand All @@ -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,
Expand Down
8 changes: 0 additions & 8 deletions src/modules/user/dtos/user-update.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
MaxLength,
IsNumber,
IsPositive,
IsEmail,
IsPhoneNumber,
IsUrl,
IsEnum,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 39f653f

Please sign in to comment.