fleetmap-reports 1.0.673 → 1.0.674
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/util/traccar.js +3 -1
- package/src/zone-report.js +1 -1
package/package.json
CHANGED
package/src/util/traccar.js
CHANGED
|
@@ -95,7 +95,8 @@ async function getAllInOne (
|
|
|
95
95
|
requests.push(
|
|
96
96
|
traccar.axios.get(u, {
|
|
97
97
|
jar: traccar.cookieJar,
|
|
98
|
-
withCredentials: true
|
|
98
|
+
withCredentials: true,
|
|
99
|
+
timeout: 900000
|
|
99
100
|
}).then(r => r.data).then(x => {
|
|
100
101
|
console.log('LOADING_MESSAGE:' + _chunk[0].name)
|
|
101
102
|
if (counter) {
|
|
@@ -105,6 +106,7 @@ async function getAllInOne (
|
|
|
105
106
|
currentDeviceCount += devicesPerRequest
|
|
106
107
|
console.log(`PROGRESS_PERC:${currentDeviceCount / totalDevices * 100}`)
|
|
107
108
|
}
|
|
109
|
+
console.log(_chunk.map(d => `deviceId=${d.id}`), x.route && x.route.length)
|
|
108
110
|
return x
|
|
109
111
|
}))
|
|
110
112
|
}
|
package/src/zone-report.js
CHANGED
|
@@ -19,7 +19,7 @@ const axios = require('axios')
|
|
|
19
19
|
const { processServerSide } = require('./util')
|
|
20
20
|
const { filterPositions } = require('./util/route')
|
|
21
21
|
const sliceSize = 10
|
|
22
|
-
const deviceChunk =
|
|
22
|
+
const deviceChunk = 1
|
|
23
23
|
const fileName = 'ZoneReport'
|
|
24
24
|
|
|
25
25
|
async function createZoneReport (from, to, userData, traccar) {
|