fleetmap-reports 1.0.345 → 1.0.346

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.345",
3
+ "version": "1.0.346",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -238,7 +238,6 @@ async function getHereEvents(devices, routes, threshold){
238
238
  continue
239
239
  }
240
240
  let hereAlerts = null
241
- try {
242
241
  const results = await here.routeMatch(positions)
243
242
  hereAlerts = results.filter(r => r.currentSpeedKmh > (parseInt(r.speedLimit) + threshold)).map(r => {
244
243
  const position = positions.find(p => new Date(p.fixTime).getTime() === r.timestamp)
@@ -265,9 +264,6 @@ async function getHereEvents(devices, routes, threshold){
265
264
  return acc
266
265
  })
267
266
  events.push(...reduced)
268
- } catch (e) {
269
- console.error(hereAlerts, 'threshold', threshold, e)
270
- }
271
267
  }
272
268
  return events
273
269
  }