fleetmap-reports 2.0.200 → 2.0.201
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 +2 -1
package/package.json
CHANGED
package/src/util/traccar.js
CHANGED
|
@@ -93,7 +93,7 @@ async function getItems (traccar, u, _chunk, counter, devicesPerRequest, ignoreP
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
async function streamJson (traccar, u) {
|
|
96
|
-
console.log('streaming', u)
|
|
96
|
+
console.log('streaming', traccar.axios.defaults.baseURL, u)
|
|
97
97
|
const response = await traccar.axios.get(u, {
|
|
98
98
|
responseType: 'stream',
|
|
99
99
|
jar: traccar.cookieJar,
|
|
@@ -105,6 +105,7 @@ async function streamJson (traccar, u) {
|
|
|
105
105
|
route: []
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
console.log('waiting for data')
|
|
108
109
|
return new Promise((resolve, reject) => {
|
|
109
110
|
const pipeline = chain([
|
|
110
111
|
response.data, // Axios stream (Node readable)
|