From 978855b9804d7362c90163b481fdf0dc7d093c87 Mon Sep 17 00:00:00 2001 From: CODE <1650192445@qq.com> Date: Wed, 13 Dec 2023 10:54:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8A=BD=E6=9F=A5=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/report/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,