fleetmap-reports 1.0.522 → 1.0.523

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.522",
3
+ "version": "1.0.523",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -80,7 +80,7 @@ async function createSpeedingReportByDevice (from, to, userData, traccarInstance
80
80
  xpert: devices.filter(d => d && d.attributes && d.attributes.xpert).length > 0
81
81
  }
82
82
 
83
- const _sliced = automaticReports.sliceArray(automaticReports.sliceArray(devices, 10), 10)
83
+ const _sliced = automaticReports.sliceArray(automaticReports.sliceArray(devices, 10), 5)
84
84
 
85
85
  let deviceCount = 0
86
86
  for (const sliced of _sliced) {
@@ -105,7 +105,7 @@ async function createSpeedingReportByDriver (from, to, userData, traccarInstance
105
105
  const devices = await drivers.devicesByDriver(traccarInstance, from, to, userData.drivers, userData.devices)
106
106
  console.log('Devices with driver', devices.length)
107
107
  const _drivers = []
108
- const sliced = automaticReports.sliceArray(devices, 10)
108
+ const sliced = automaticReports.sliceArray(devices, 5)
109
109
  let deviceCount = 0
110
110
  for (const slice of sliced) {
111
111
  const { routes, events } = await getEvents(traccarInstance, from, to, slice, userData, deviceCount, devices.length, slice.length)