fleetmap-reports 1.0.922 → 1.0.923

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.922",
3
+ "version": "1.0.923",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/kms-report.js CHANGED
@@ -58,8 +58,8 @@ async function createKmsReportByDevice (from, to, userData, traccarInstance) {
58
58
 
59
59
  // Process report data
60
60
  if (trips.length) {
61
- checkTripsKms(traccarInstance, from, to, allDevices, { trips, route })
62
- allData.devices = allData.devices.concat(await processDevices(from, to, allDevices, {
61
+ checkTripsKms(traccarInstance, from, to, devices, { trips, route })
62
+ allData.devices = allData.devices.concat(await processDevices(from, to, devices, {
63
63
  trips,
64
64
  route
65
65
  }, userData, traccarInstance))