fleetmap-reports 2.0.263 → 2.0.264

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.263",
3
+ "version": "2.0.264",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -52,7 +52,7 @@ async function createLocationReportByDriver (from, to, userData, traccar) {
52
52
  return { drivers: [] }
53
53
  }
54
54
 
55
- const sliced = automaticReports.sliceArray(devices, 4)
55
+ const sliced = automaticReports.sliceArray(devices, 3)
56
56
  const driversResult = []
57
57
 
58
58
  for (const slice of sliced) {
@@ -27,6 +27,7 @@ describe('test positions', function () {
27
27
  try {
28
28
  const userData = await report.getUserData()
29
29
  userData.byDriver = true
30
+ userData.drivers = [userData.drivers.pop()]
30
31
  const data = await report.locationReport(
31
32
  new Date(Date.UTC(2025, 0, 1, 0, 0, 0)),
32
33
  new Date(Date.UTC(2025, 0, 31, 23, 59, 59, 0)),