fleetmap-reports 2.0.244 → 2.0.246

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": "2.0.244",
3
+ "version": "2.0.246",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -101,7 +101,7 @@ async function getItems (traccar, u, _chunk, counter, devicesPerRequest, ignoreP
101
101
  }
102
102
 
103
103
  function streamJson (traccar, u, filter) {
104
- const cookie = traccar.axios.defaults.headers?.cookie || traccar.axios.defaults.headers?.common?.cookie
104
+ const cookie = traccar.axios.defaults.headers?.cookie || traccar.axios.defaults.headers?.common?.cookie || require('axios').defaults.headers?.common?.cookie
105
105
  return piscina.run({
106
106
  url: traccar.axios.defaults.baseURL + u,
107
107
  cookie,