From e5e5495a4299cc8e91b1d2a79fc81b202c5189cc Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Fri, 10 Jan 2025 09:11:23 +0100 Subject: [PATCH] fix: update user.dto state property --- api/src/user/dto/user.dto.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/src/user/dto/user.dto.ts b/api/src/user/dto/user.dto.ts index bda90053..ce706e7d 100644 --- a/api/src/user/dto/user.dto.ts +++ b/api/src/user/dto/user.dto.ts @@ -62,12 +62,21 @@ export class UserCreateDto { @IsString() @IsObjectId({ message: 'Avatar must be a valid ObjectId' }) avatar: string | null = null; + + @ApiPropertyOptional({ + description: 'User state', + type: Boolean, + }) + @IsOptional() + @IsBoolean() + state?: boolean; } export class UserEditProfileDto extends OmitType(PartialType(UserCreateDto), [ 'username', 'roles', 'avatar', + 'state', ]) { @ApiPropertyOptional({ description: 'User language', type: String }) @IsOptional()