fleetmap-reports 1.0.358 → 1.0.359
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 +1 -1
- package/src/trip-report.js +2 -1
package/package.json
CHANGED
package/src/trip-report.js
CHANGED
|
@@ -117,13 +117,14 @@ async function createTripReportByDriver(from, to, userData, traccar){
|
|
|
117
117
|
function processDevices(from, to, devices, data, userData) {
|
|
118
118
|
const devicesResult = []
|
|
119
119
|
|
|
120
|
-
devices.forEach(d => {
|
|
120
|
+
devices.forEach((d, index) => {
|
|
121
121
|
const route = data.route.filter(t => t.deviceId === d.id)
|
|
122
122
|
const trips = data.trips.filter(t => t.deviceId === d.id
|
|
123
123
|
&& (userData.allWeek || !userData.weekDays || isInsideTimetable(t, userData) || isPartialInsideTimetable(t, userData, route)))
|
|
124
124
|
const stops = data.stops.filter(s => s.deviceId === d.id)
|
|
125
125
|
|
|
126
126
|
console.log('LOADING_MESSAGE:' + d.name)
|
|
127
|
+
console.log(`PROGRESS_PERC:${index/devices.length*100}`)
|
|
127
128
|
|
|
128
129
|
addNearestPOIs(trips, userData)
|
|
129
130
|
|