Skip to content

Commit f93b135

Browse files
committed
Refactor agents and identities DTOs
1 parent 2c6e5c7 commit f93b135

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/core/agents/_dto/agents.dto.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ export class AgentsCreateDto extends CustomFieldsDto {
5656
@ApiProperty()
5757
public baseURL?: string;
5858

59-
@IsArray()
60-
@IsString({ each: true })
61-
@ApiProperty({ type: [String] })
62-
public roles: string[];
59+
// @IsArray()
60+
// @IsString({ each: true })
61+
// @ApiProperty({ type: [String] })
62+
// public roles: string[];
6363

6464
@ValidateNested()
6565
@Type(() => SecurityPartDTO)
@@ -78,4 +78,4 @@ export class AgentsDto extends AgentsCreateDto {
7878
public _id: string;
7979
}
8080

81-
export class AgentsUpdateDto extends PartialType(AgentsCreateDto) {}
81+
export class AgentsUpdateDto extends PartialType(AgentsCreateDto) { }

src/management/identities/_schemas/_parts/inetOrgPerson.part.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ export class inetOrgPerson extends Document {
5151
@Prop()
5252
departmentNumber: string;
5353

54+
@Prop()
55+
jpegPhoto?: string;
56+
5457
@Prop()
5558
userCertificate?: string;
5659

0 commit comments

Comments
 (0)