diff --git a/backend/src/user/dto/updateOwnUser.dto.ts b/backend/src/user/dto/updateOwnUser.dto.ts index 8d9f73e..772a06b 100644 --- a/backend/src/user/dto/updateOwnUser.dto.ts +++ b/backend/src/user/dto/updateOwnUser.dto.ts @@ -1,6 +1,6 @@ -import { OmitType, PartialType } from "@nestjs/swagger"; +import { PartialType, PickType } from "@nestjs/swagger"; import { UserDTO } from "./user.dto"; export class UpdateOwnUserDTO extends PartialType( - OmitType(UserDTO, ["isAdmin", "password"] as const), + PickType(UserDTO, ["username", "email"] as const) ) {}