From 940fc4079f04dc4b7c02eaae4dc11a901663a9a4 Mon Sep 17 00:00:00 2001 From: stae1102 Date: Sun, 14 Apr 2024 14:17:50 +0900 Subject: [PATCH] fix: change password optional --- src/users/dtos/edit-profile.dto.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/users/dtos/edit-profile.dto.ts b/src/users/dtos/edit-profile.dto.ts index e84ab11..91c99ba 100644 --- a/src/users/dtos/edit-profile.dto.ts +++ b/src/users/dtos/edit-profile.dto.ts @@ -10,7 +10,8 @@ export class EditProfileDto { @Matches(/^(?=.*\d)[A-Za-z\d@$!%*?&]{8,}$/, { message: 'Password must be at least 8 characters long, contain 1 number', }) - password: string; + @IsOptional() + password?: string; @ApiProperty({ example: 'tester', description: 'User Name' }) @IsString()