Fixed v3 mirror flow

This commit is contained in:
SepehrYahyaee
2026-07-18 15:01:13 +03:30
parent 5b114c2069
commit a1fca82cb2

View File

@@ -10598,8 +10598,11 @@ export class ClaimRequestManagementService {
actor, actor,
); );
// V4/V5 (in-person FileReviewer flow): car-capture is the last step. // V4/V5 only (isMadeByFileMaker): car-capture is the FINAL FileReviewer step.
// Both variants land at WAITING_FOR_DAMAGE_EXPERT here. // For the v3 mirror (FIELD_EXPERT IN_PERSON), car-capture is penultimate —
// expertUploadBlameVideoV3 finalises the blame with the accident video next.
if ((blame as any).isMadeByFileMaker) {
// Both V4 and V5 land at WAITING_FOR_DAMAGE_EXPERT here.
// For V5 (requiresFileMakerApproval=true), autoSubmitToFanavaranV2OnClaimCompleted // For V5 (requiresFileMakerApproval=true), autoSubmitToFanavaranV2OnClaimCompleted
// intercepts COMPLETED → WAITING_FOR_FILE_MAKER_APPROVAL after expert review. // intercepts COMPLETED → WAITING_FOR_FILE_MAKER_APPROVAL after expert review.
await this.claimCaseDbService.findByIdAndUpdate(claimRequestId, { await this.claimCaseDbService.findByIdAndUpdate(claimRequestId, {
@@ -10635,6 +10638,7 @@ export class ClaimRequestManagementService {
{ $set: { status: BlameCaseStatus.COMPLETED } }, { $set: { status: BlameCaseStatus.COMPLETED } },
); );
} }
}
return result; return result;
} }