fleetmap-reports 1.0.291 → 1.0.292

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.291",
3
+ "version": "1.0.292",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -255,7 +255,7 @@ async function getHereEvents(devices, routes, threshold){
255
255
  attributes: {speedLimit: r.speedLimit, speed: r.currentSpeedKmh / 1.85200}
256
256
  }
257
257
  })
258
- if (!hereAlerts) {
258
+ if (!hereAlerts.length) {
259
259
  console.log('empty array after filter on device', d.name)
260
260
  continue
261
261
  }