File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
src/management/identities Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff 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
103103export class inetOrgPersonDto extends inetOrgPersonCreateDto { }
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments