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()