Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
♻️ Remove attributes from DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 16, 2020
1 parent 69a88ce commit 4dd62ef
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions src/modules/auth/auth.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ export class RegisterDto {
@IsOptional()
timezone?: string;

@IsObject()
@IsOptional()
attributes?: Record<string, any>;

@IsBoolean()
@IsOptional()
ignorePwnedPassword?: boolean;
Expand Down
8 changes: 0 additions & 8 deletions src/modules/groups/groups.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ export class CreateGroupDto {
@IsString()
@IsOptional()
profilePictureUrl?: string;

@IsObject()
@IsOptional()
attributes?: Record<string, any>;
}

export class UpdateGroupDto {
Expand All @@ -61,10 +57,6 @@ export class UpdateGroupDto {
@IsString()
@IsOptional()
profilePictureUrl?: string;

@IsObject()
@IsOptional()
attributes?: Record<string, any>;
}

export class ReplaceGroupDto {
Expand Down
4 changes: 0 additions & 4 deletions src/modules/users/users.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,4 @@ export class UpdateUserDto {
@IsEnum(['NONE', 'TOTP', 'EMAIL'])
@IsOptional()
twoFactorMethod?: MfaMethod;

@IsObject()
@IsOptional()
attributes?: Record<string, any>;
}

0 comments on commit 4dd62ef

Please sign in to comment.