feat: flag mileage target coverage gaps
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user