fix: add public userDTO to prevent confusion

This commit is contained in:
Elias Schneider
2022-11-10 13:50:52 +01:00
parent 43299522ee
commit 0efd2d8bf9
2 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
import { PickType } from "@nestjs/swagger";
import { UserDTO } from "./user.dto";
export class PublicUserDTO extends PickType(UserDTO, ["email"] as const) {}