feat: flag mileage target coverage gaps

This commit is contained in:
kkfluous
2026-08-07 17:52:49 +08:00
parent bca0f7fe82
commit d1ed3903fe
6 changed files with 74 additions and 2 deletions
+2 -1
View File
@@ -201,7 +201,8 @@ app.get('/', async (c) => {
id: t.id,
targetName: t.target_name,
snapshotUpdatedAt: s.snapshot_updated_at || null,
vehicleCount: Number(s.total) || t.vehicle_count,
declaredVehicleCount: Number(t.vehicle_count) || 0,
vehicleCount: s.total == null ? 0 : Number(s.total) || 0,
totalMileagePerVehicle: Number(t.total_mileage_per_vehicle),
annualMileagePerVehicle: Number(t.annual_mileage_per_vehicle),
assessmentYears: t.assessment_years,