mirror change from https://github.com/binhkid2/FullStack-Blog-Nestjs-Nextjs-Postgres
This commit is contained in:
7
backend/src/users/dto/update-user-role.dto.ts
Normal file
7
backend/src/users/dto/update-user-role.dto.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { IsEnum } from 'class-validator';
|
||||
import { UserRole } from '../entities/user.entity';
|
||||
|
||||
export class UpdateUserRoleDto {
|
||||
@IsEnum(UserRole)
|
||||
role: UserRole;
|
||||
}
|
||||
Reference in New Issue
Block a user