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