fleetmap-reports 2.0.208 → 2.0.209

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.208",
3
+ "version": "2.0.209",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -95,7 +95,7 @@ async function getItems (traccar, u, _chunk, counter, devicesPerRequest, ignoreP
95
95
  }
96
96
 
97
97
  function streamJson (traccar, u) {
98
- const cookie = traccar.axios.defaults.headers.common.cookie
98
+ const cookie = traccar.axios.defaults.headers?.cookie || traccar.axios.defaults.headers?.common?.cookie
99
99
  return piscina.run({
100
100
  url: traccar.axios.defaults.baseURL + u,
101
101
  cookie