fleetmap-reports 1.0.300 → 1.0.301

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.300",
3
+ "version": "1.0.301",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/kms-report.js CHANGED
@@ -118,7 +118,7 @@ function processDrivers(from, to, drivers, data) {
118
118
  console.log(data)
119
119
  const driversResult = []
120
120
  drivers.forEach(d => {
121
- const route = data.route.filter(t => t.driverUniqueId === d.uniqueId)
121
+ const route = data.route.filter(p => p.attributes.driverUniqueId === d.uniqueId)
122
122
  const trips = data.trips.filter(t => t.driverUniqueId === d.uniqueId
123
123
  && (userData.allWeek || !userData.weekDays || isInsideTimetable(t, userData) || isPartialInsideTimetable(t, userData, route)))
124
124
 
@@ -179,7 +179,7 @@ function processDrivers(from, to, drivers, data) {
179
179
  console.log(data)
180
180
  const driversResult = []
181
181
  drivers.forEach(d => {
182
- const route = data.route.filter(t => t.driverUniqueId === d.uniqueId)
182
+ const route = data.route.filter(p => p.attributes.driverUniqueId === d.uniqueId)
183
183
  const trips = data.trips.filter(t => t.driverUniqueId === d.uniqueId
184
184
  && (userData.allWeek || !userData.weekDays || isInsideTimetable(t, userData) || isPartialInsideTimetable(t, userData, route)))
185
185