Centralized damaged parts alongside all their required info

This commit is contained in:
SepehrYahyaee
2026-06-01 11:38:30 +03:30
parent b9e7373225
commit cec349b7c2
4 changed files with 215 additions and 48 deletions

View File

@@ -3985,7 +3985,10 @@ export class ClaimRequestManagementService {
...(currentUserParty.person?.clientId
? {
clientId: new Types.ObjectId(
currentUserParty.person.clientId as any,
String(blameRequest?.expert?.decision?.guiltyPartyId) ===
String(blameRequest?.parties[0]?.person?.userId)
? blameRequest?.parties[0]?.person?.clientId
: blameRequest?.parties[1]?.person?.clientId,
),
}
: {}),