fleetmap-reports 1.0.290 → 1.0.291

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.290",
3
+ "version": "1.0.291",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -255,6 +255,10 @@ async function getHereEvents(devices, routes, threshold){
255
255
  attributes: {speedLimit: r.speedLimit, speed: r.currentSpeedKmh / 1.85200}
256
256
  }
257
257
  })
258
+ if (!hereAlerts) {
259
+ console.log('empty array after filter on device', d.name)
260
+ continue
261
+ }
258
262
  const reduced = hereAlerts.reduce((acc, cur, idx, src) => {
259
263
  if (idx === 1) {
260
264
  return [cur]