forked from Yara724/api
Fix expert identity case search
This commit is contained in:
@@ -6636,12 +6636,16 @@ export class RequestManagementService {
|
||||
nationalCode: entry?.person?.nationalCode,
|
||||
nationalCodeOfInsurer: entry?.person?.nationalCodeOfInsurer,
|
||||
nationalCodeOfDriver: entry?.person?.nationalCodeOfDriver,
|
||||
inquiryParticipants: Array.isArray(entry?.inquiryParticipants)
|
||||
? entry.inquiryParticipants.map((participant: any) => ({
|
||||
phoneNumber: participant?.phoneNumber,
|
||||
nationalCode: participant?.nationalCode,
|
||||
}))
|
||||
: undefined,
|
||||
participants: (
|
||||
Array.isArray(entry?.participants)
|
||||
? entry.participants
|
||||
: entry?.inquiryParticipants
|
||||
)?.map((participant: any) => ({
|
||||
phoneNumber: participant?.phoneNumber,
|
||||
nationalCode: participant?.nationalCode,
|
||||
nationalCodeOfInsurer: participant?.nationalCodeOfInsurer,
|
||||
nationalCodeOfDriver: participant?.nationalCodeOfDriver,
|
||||
})),
|
||||
}))
|
||||
: [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user