Skip to content

Commit 6907656

Browse files
committed
Refactor error messages for already fused identities
1 parent 503476e commit 6907656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/management/identities/identities.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,10 @@ export class IdentitiesService extends AbstractServiceSchema {
456456
//test si une ou les deux entités ont deja été fusionnées
457457
const x = identity1.destFusionId
458458
if (identity1.destFusionId !== undefined && identity1.destFusionId !== null) {
459-
throw new BadRequestException('Id1 already fusionned');
459+
throw new BadRequestException('Id1 already fusionned');
460460
}
461461
if (identity2.destFusionId !== undefined && identity2.destFusionId !== null) {
462-
throw new BadRequestException('Id2 already fusionned');
462+
throw new BadRequestException('Id2 already fusionned');
463463
}
464464
const plainIdentity1 = toPlainAndCrush(identity1.toJSON(), {
465465
excludePrefixes: ['_id', 'fingerprint', 'metadata'],

0 commit comments

Comments
 (0)