1
0
forked from Yara724/api

Fixed statuses

This commit is contained in:
SepehrYahyaee
2026-07-01 17:21:54 +03:30
parent 6be9ff16e1
commit 29939eee20

View File

@@ -3842,7 +3842,7 @@ export class ExpertClaimService {
blameIds.length > 0
? ((await this.blameRequestDbService.find(
{ _id: { $in: blameIds.map((id) => new Types.ObjectId(id)) } },
{ lean: true, select: "type parties expert.decision blameStatus" },
{ lean: true, select: "type parties expert.decision blameStatus status" },
)) as any[])
: [];
const blameById = new Map<string, any>(
@@ -3883,6 +3883,8 @@ export class ExpertClaimService {
...fileCtx,
createdAt: c.createdAt,
awaitingFactorValidation: claimIsAwaitingExpertFactorValidationV2(c),
needsFileReviewerCompletion:
String(blame?.status ?? "") === "WAITING_FOR_FILE_REVIEWER",
};
}) as ClaimListItemV2Dto[];