mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 20:59:26 +00:00
fix 500 error
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user