@@ -22,8 +22,8 @@ import { IdentityState } from './_enums/states.enum';
2222import { Identities } from './_schemas/identities.schema' ;
2323import { IdentitiesValidationService } from './validations/identities.validation.service' ;
2424import { FactorydriveService } from '@the-software-compagny/nestjs_module_factorydrive' ;
25- import { ApiBadRequestResponse } from "@nestjs/swagger" ;
26- import { InitStatesEnum } from "~/management/identities/_enums/init-state.enum" ;
25+ import { ApiBadRequestResponse } from "@nestjs/swagger" ;
26+ import { InitStatesEnum } from "~/management/identities/_enums/init-state.enum" ;
2727
2828@Injectable ( )
2929export class IdentitiesService extends AbstractServiceSchema {
@@ -454,7 +454,7 @@ export class IdentitiesService extends AbstractServiceSchema {
454454 throw new BadRequestException ( 'Id2 not found' ) ;
455455 }
456456 //test si une ou les deux entités ont deja été fusionnées
457- const x = identity1 . destFusionId
457+ const x = identity1 . destFusionId
458458 if ( identity1 . destFusionId !== undefined && identity1 . destFusionId !== null ) {
459459 throw new BadRequestException ( 'Id1 already fusionned' ) ;
460460 }
@@ -467,7 +467,7 @@ export class IdentitiesService extends AbstractServiceSchema {
467467 const plainIdentity2 = toPlainAndCrush ( identity2 . toJSON ( ) , {
468468 excludePrefixes : [ '_id' , 'fingerprint' , 'metadata' ] ,
469469 } ) ;
470- const newObj = construct ( { ...plainIdentity2 , ...plainIdentity1 } ) ;
470+ const newObj : Partial < Identities > = construct ( { ...plainIdentity2 , ...plainIdentity1 } ) ;
471471 //const newIdentity = await this.create(newObj);
472472 newObj . inetOrgPerson . employeeType = 'FUSION' ;
473473 newObj . inetOrgPerson . employeeNumber =
0 commit comments