From b897c775a905d38ea514a2037960fdd1e8e27e06 Mon Sep 17 00:00:00 2001 From: Andres Date: Fri, 29 Dec 2023 21:07:02 +0100 Subject: [PATCH] fix 500 error --- src/modules/auth/dto/update-user-data.dto.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/auth/dto/update-user-data.dto.ts b/src/modules/auth/dto/update-user-data.dto.ts index dd38250..9429874 100644 --- a/src/modules/auth/dto/update-user-data.dto.ts +++ b/src/modules/auth/dto/update-user-data.dto.ts @@ -1,14 +1,12 @@ -import { ApiProperty, PickType, PartialType } from '@nestjs/swagger' +import { PartialType, PickType } from '@nestjs/swagger' import { IsOptional } from 'class-validator' import { User } from '../entities/auth.entity' export class UpdateUserDataDto extends PartialType(PickType(User, ['name', 'avatar'] as const)) { @IsOptional() - @ApiProperty({ required: false }) avatar?: string @IsOptional() - @ApiProperty({ required: false }) name?: string }