fleetmap-reports 1.0.987 → 1.0.988

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.987",
3
+ "version": "1.0.988",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -363,13 +363,14 @@ async function invokeValhalla (route, i, chunk, country, threshold, results, ret
363
363
  console.log(e.message, 'retry:', retry)
364
364
  return invokeValhalla(route, i, chunk, country, threshold, results, retry)
365
365
  } else {
366
- console.error(e.message, e.response && e.response.data, 'deviceId', slice[0] && slice[0].deviceId, slice[0] && slice[0].address, country)
366
+ console.error(e.message, e.response && e.response.data, 'deviceId',
367
+ slice[0] && slice[0].deviceId, slice[0] && slice[0].address, slice[0] && slice[0].fixTime, country, chunk)
367
368
  }
368
369
  }
369
370
  }
370
371
 
371
372
  async function getOSMSpeedingEvents (devices, routes, threshold, minimumMinutes = 0, country) {
372
- const chunk = 500
373
+ const chunk = 300
373
374
  const events = []
374
375
  for (const d of devices) {
375
376
  const route = routes.filter(r => r.deviceId === d.id)