1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-06-16 03:50:20 +02:00

fix: user id and totpVerified can't be changed by user

This commit is contained in:
Elias Schneider 2024-02-11 16:19:19 +01:00
parent f52dffdaac
commit e663da45b1
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C

View File

@ -1,6 +1,6 @@
import { OmitType, PartialType } from "@nestjs/swagger"; import { PartialType, PickType } from "@nestjs/swagger";
import { UserDTO } from "./user.dto"; import { UserDTO } from "./user.dto";
export class UpdateOwnUserDTO extends PartialType( export class UpdateOwnUserDTO extends PartialType(
OmitType(UserDTO, ["isAdmin", "password"] as const), PickType(UserDTO, ["username", "email"] as const)
) {} ) {}