diff --git a/api/app/lib/controllers/report/index.js b/api/app/lib/controllers/report/index.js index 7f32bd05..3d44b7d3 100644 --- a/api/app/lib/controllers/report/index.js +++ b/api/app/lib/controllers/report/index.js @@ -765,7 +765,7 @@ async function confirmRoadSpot (ctx) { let spotRslt = [] for await (let item of spotedRoadIds) { - let corConserveCount = conserveCountRes.find(item => item.road_id == item) + let corConserveCount = conserveCountRes.find(cc => cc.road_id == item) spotRslt.push({ roadId: item, maintenanceCount: corConserveCount ? corConserveCount.count : 0,