From dd1229db9c323b05fb6a5efd94a3fcaa4d3f7909 Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Thu, 20 Mar 2025 10:50:35 +0300 Subject: [PATCH] add password as optional --- src/vistor-password/dtos/temp-pass.dto.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vistor-password/dtos/temp-pass.dto.ts b/src/vistor-password/dtos/temp-pass.dto.ts index 3637124..f912d4b 100644 --- a/src/vistor-password/dtos/temp-pass.dto.ts +++ b/src/vistor-password/dtos/temp-pass.dto.ts @@ -248,10 +248,10 @@ export class AddDoorLockTemporaryPasswordDto { @ApiProperty({ description: 'password', - required: true, + required: false, }) @IsString() - @IsNotEmpty() + @IsOptional() @Length(7, 7) public password: string;