From cfaa46a16272ee3c35fc5a73734f9bac30d6de4c Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Sat, 28 May 2022 16:04:08 +0200 Subject: [PATCH] feat(route-count): convert map to object --- agency-route-count/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/agency-route-count/index.js b/agency-route-count/index.js index 8cd6c06..b83219e 100644 --- a/agency-route-count/index.js +++ b/agency-route-count/index.js @@ -16,17 +16,19 @@ async function run() { debug('run started...') const res = await axios.get(URL); debug('res: '+res); + + let MapRoutes=null; if('data' in res){ /*get routes*/ const AryRoutes=res.data; const RouteCount=AryRoutes.length; debug('RouteCount: '+RouteCount); /*create map*/ - const MapRoutes=new Map(); + MapRoutes=new Map(); /*interate through routes*/ - //TODO for(var i=0;i