fleetmap-reports 1.0.374 → 1.0.375

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.374",
3
+ "version": "1.0.375",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -78,7 +78,10 @@ async function getAllInOne(traccar, from, to, devices, getRoutes, getTrips, getS
78
78
  const result = []
79
79
  for(const chunk of sliced) {
80
80
  const requests = chunk.map(d =>
81
- traccar.axios.get(url + '&' + `deviceId=${d.id}`).then(r => r.data).then(x => {
81
+ traccar.axios.get(url + '&' + `deviceId=${d.id}`, {
82
+ jar: traccar.cookieJar,
83
+ withCredentials: true
84
+ }).then(r => r.data).then(x => {
82
85
  console.log('LOADING_MESSAGE:' + d.name)
83
86
  console.log(`PROGRESS_PERC:${++deviceCount / devices.length * 100}`)
84
87
  return x