Skip to content

Commit 40c3b59

Browse files
committed
chore: Remove commented out code for photo field in inetOrgPerson DTO and schema
1 parent e3b29fb commit 40c3b59

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/management/identities/_dto/_parts/inetOrgPerson.dto.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ export class inetOrgPersonCreateDto {
9494
@IsOptional()
9595
public jpegPhoto?: string;
9696

97-
@IsString()
98-
@ApiProperty({ required: false })
99-
@IsOptional()
100-
public photo?: string;
97+
// @IsString()
98+
// @ApiProperty({ required: false })
99+
// @IsOptional()
100+
// public photo?: string;
101101
}
102102

103103
export class inetOrgPersonDto extends inetOrgPersonCreateDto { }

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export class inetOrgPerson extends Document {
5959
@Prop({ type: String, default: null })
6060
public jpegPhoto?: string;
6161

62-
@Prop({ type: String, default: null })
63-
public photo?: string;
62+
// @Prop({ type: String, default: null })
63+
// public photo?: string;
6464

6565
@Prop({ type: String, default: null })
6666
public userCertificate?: string;

src/management/identities/identities.controller.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export class IdentitiesController extends AbstractController {
8686
> {
8787
let statusCode = HttpStatus.CREATED;
8888
let message = null;
89+
if (!body.inetOrgPerson.employeeType) {
90+
body.inetOrgPerson.employeeType = 'LOCAL';
91+
}
8992
const data = await this._service.create<Identities>(body);
9093
// If the state is TO_COMPLETE, the identity is created but additional fields are missing or invalid
9194
// Else the state is TO_VALIDATE, we return a 201 status code

0 commit comments

Comments
 (0)