Skip to content

Commit

Permalink
fix(user): exclude a few fields from view model (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kif-Fando authored Feb 7, 2022
1 parent 96b8a5b commit f9fdc50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/users/api/UserDto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiProperty } from '@nestjs/swagger';
import { ApiHideProperty, ApiProperty } from '@nestjs/swagger';

export class UserDto {
@ApiProperty()
Expand All @@ -10,10 +10,10 @@ export class UserDto {
@ApiProperty()
lastName: string;

@ApiProperty()
@ApiHideProperty()
isAdmin: boolean;

@ApiProperty()
@ApiHideProperty()
password: string;

constructor(
Expand Down

0 comments on commit f9fdc50

Please sign in to comment.