ai insight rework #2

This commit is contained in:
Alberto-Audrix committed 2026-10-01 13:23:45 +07:00
1 parent 9d76f54d33
commit e1987d6999
39 files changed
+2311 -830

No files matched your search

+1 -2
View File
@@ -98,8 +98,7 @@ export function buildInMemoryReport(input: BuildInMemoryReportInput): DashboardR
const kpi = kpiByAge.get(day) ?? null;
const manual = manualByDay.get(day) ?? null;
const iotCount = iot?.total_count ?? null;
const mortality =
manual?.mortality_manual ?? kpi?.mortality ?? iot?.mortality_count ?? null;
const mortality = manual?.mortality_manual ?? kpi?.mortality ?? iot?.mortality_count ?? null;
const harvest = manual?.harvest_manual ?? kpi?.harvest ?? null;
const harvestWeight = manual?.harvest_weight_manual ?? kpi?.harvest_weight ?? null;
const mati = mortality ?? 0;