fleetmap-reports 1.0.284 → 1.0.285
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 +1 -1
- package/src/speeding-report.js +3 -8
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -237,14 +237,9 @@ async function getCustomSpeedLimitEvents(devices, routes){
|
|
|
237
237
|
async function getHereEvents(devices, routes, threshold){
|
|
238
238
|
console.log('here speed limit events')
|
|
239
239
|
const events = []
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
await Promise.all(temporary.map(d =>
|
|
244
|
-
here.routeMatch(routes.filter(p => p.deviceId === d.id)).then(r => d.results = r)
|
|
245
|
-
))
|
|
246
|
-
}
|
|
247
|
-
|
|
240
|
+
await Promise.all(devices.map(d =>
|
|
241
|
+
here.routeMatch(routes.filter(p => p.deviceId === d.id)).then(r => d.results = r)
|
|
242
|
+
))
|
|
248
243
|
for (const d of devices) {
|
|
249
244
|
try {
|
|
250
245
|
const results = d.results
|