Fix expert identity case search

This commit is contained in:
SepehrYahyaee
2026-09-27 14:40:29 +03:30
parent aaf0df1cc0
commit c7c7709f0f
4 changed files with 46 additions and 16 deletions

View File

@@ -798,12 +798,16 @@ export class ExpertClaimService {
nationalCode: party?.person?.nationalCode,
nationalCodeOfInsurer: party?.person?.nationalCodeOfInsurer,
nationalCodeOfDriver: party?.person?.nationalCodeOfDriver,
inquiryParticipants: Array.isArray(party?.inquiryParticipants)
? party.inquiryParticipants.map((participant: any) => ({
phoneNumber: participant?.phoneNumber,
nationalCode: participant?.nationalCode,
}))
: undefined,
participants: (
Array.isArray(party?.participants)
? party.participants
: party?.inquiryParticipants
)?.map((participant: any) => ({
phoneNumber: participant?.phoneNumber,
nationalCode: participant?.nationalCode,
nationalCodeOfInsurer: participant?.nationalCodeOfInsurer,
nationalCodeOfDriver: participant?.nationalCodeOfDriver,
})),
}));
}
if (blameRequestType !== BlameRequestType.CAR_BODY) return out;