forked from Yara724/api
v4 bug fixed
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user