fix 500 error

This commit is contained in:
2023-12-29 21:07:02 +01:00
parent 1a97c7e3c0
commit b897c775a9

View File

@@ -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
}