add /auth/patch endpoint

This commit is contained in:
2023-07-17 00:12:17 +02:00
parent 111ca55cbf
commit 8d33fce53d
7 changed files with 120 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
import { PickType } from '@nestjs/swagger'
import { IsEmail, IsOptional } from 'class-validator'
import { User } from '../entities/auth.entity'
export class UpdateUserDataDto extends PickType(User, ['name', 'email', 'avatar'] as const) {
avatar: string
@IsOptional()
name: string
@IsOptional()
@IsEmail()
email: string
}