YARA-739, YARA-740, YARA-741

This commit is contained in:
SepehrYahyaee
2026-01-28 15:34:38 +03:30
parent 8db56d38be
commit ae53ef6032
9 changed files with 305 additions and 25 deletions

View File

@@ -238,16 +238,16 @@ export class ReportsService {
}
} else {
// Fallback to simple count if actor not provided (shouldn't happen for damage_expert)
for (const status of statuses) {
const filter = {
claimStatus: status,
userClientKey: new Types.ObjectId(client),
};
for (const status of statuses) {
const filter = {
claimStatus: status,
userClientKey: new Types.ObjectId(client),
};
const count =
await this.claimRequestManagementDbService.countByFilter(filter);
data[status] = count;
data.all += count;
const count =
await this.claimRequestManagementDbService.countByFilter(filter);
data[status] = count;
data.all += count;
}
}