diff --git a/src/controllers/ProfileFamilyHistoryController.ts b/src/controllers/ProfileFamilyHistoryController.ts index 45727cb0..29424f1f 100644 --- a/src/controllers/ProfileFamilyHistoryController.ts +++ b/src/controllers/ProfileFamilyHistoryController.ts @@ -336,7 +336,7 @@ export class ProfileFamilyHistoryController extends Controller { } }), ...childrenRecord.map(async (v) => { - if (!children.find((x) => x.id === v.id)) { + if (children.find((x) => x.id === v.id)) { return await this.childrenHistoryRepo.save( this.childrenHistoryRepo.create({ ...v,