fleetmap-reports 2.0.239 → 2.0.240

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": "2.0.239",
3
+ "version": "2.0.240",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@ describe('zones', function () {
9
9
  userData.tripsBetweenZones = true
10
10
  const result = await report.zoneReport(
11
11
  new Date(Date.UTC(2023, 6, 24, 0, 0, 0, 0)),
12
- new Date(Date.UTC(2023, 6, 25, 23, 59, 59, 0)),
12
+ new Date(Date.UTC(2023, 7, 25, 23, 59, 59, 0)),
13
13
  userData)
14
14
  console.log(await report.zoneReportToPDF(userData, result[0]))
15
15
  }, 4000000)
@@ -477,7 +477,7 @@ function analyseAlerts (alerts, deviceRoute, userData, from, to, device) {
477
477
  anyLastExit: a.anyLastExit,
478
478
  geofenceName: geofence.name,
479
479
  geofenceId: geofence.id,
480
- stopped: routeIn.filter(p => !p.attributes.ignition).length > 0,
480
+ stopped: routeIn.filter(p => !p.attributes?.ignition).length > 0,
481
481
  driverName: inData.position.driverName
482
482
  })
483
483
  zoneInData = zoneInData.filter(z => z.geofenceId !== a.geofenceId)