fleetmap-reports 1.0.985 → 1.0.986

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.985",
3
+ "version": "1.0.986",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/kms-report.js CHANGED
@@ -161,7 +161,7 @@ async function createKmsReportByGroup (from, to, userData, traccarInstance) {
161
161
  return reportData
162
162
  }
163
163
 
164
- function processDrivers (from, to, userData, data) {
164
+ async function processDrivers (from, to, userData, data) {
165
165
  const driversResult = []
166
166
  const driversOnRoute = data.route ? new Set(data.route.map(p => p.attributes.driverUniqueId)) : new Set([])
167
167
  const driverToProcess = userData.drivers.filter(d => driversOnRoute.has(d.uniqueId))