v4 bug fixed

This commit is contained in:
SepehrYahyaee
2026-07-25 09:29:12 +03:30
parent b73c92c21f
commit 2d5ade33d2
2 changed files with 15 additions and 8 deletions

View File

@@ -8770,6 +8770,16 @@ export class ClaimRequestManagementService {
if (advanced) {
// This request won the race — reflect the final state in the response.
allDocumentsUploaded = true;
// Now that the FileMaker's document phase is complete, promote the
// blame file to WAITING_FOR_FILE_REVIEWER so the frontend shows the
// correct sealed state when the FileMaker returns.
const blameId = (afterWrite as any).blameRequestId;
if (blameId) {
await this.blameRequestDbService.findByIdAndUpdate(
String(blameId),
{ $set: { status: BlameCaseStatus.WAITING_FOR_FILE_REVIEWER } },
);
}
}
} else if (
afterWrite.status === ClaimCaseStatus.WAITING_FOR_FILE_REVIEWER ||