From f9fdc50dce30e9ba3146ad331fc91948ad5a05e8 Mon Sep 17 00:00:00 2001 From: Kirill Date: Mon, 7 Feb 2022 13:25:34 +0100 Subject: [PATCH] fix(user): exclude a few fields from view model (#165) --- src/users/api/UserDto.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/users/api/UserDto.ts b/src/users/api/UserDto.ts index c0d11c57..8f288611 100644 --- a/src/users/api/UserDto.ts +++ b/src/users/api/UserDto.ts @@ -1,4 +1,4 @@ -import { ApiProperty } from '@nestjs/swagger'; +import { ApiHideProperty, ApiProperty } from '@nestjs/swagger'; export class UserDto { @ApiProperty() @@ -10,10 +10,10 @@ export class UserDto { @ApiProperty() lastName: string; - @ApiProperty() + @ApiHideProperty() isAdmin: boolean; - @ApiProperty() + @ApiHideProperty() password: string; constructor(