fleetmap-reports 2.0.243 → 2.0.245

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.243",
3
+ "version": "2.0.245",
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.cookie
105
105
  return piscina.run({
106
106
  url: traccar.axios.defaults.baseURL + u,
107
107
  cookie,
@@ -107,7 +107,7 @@ async function createZoneReport (from, to, userData, traccar) {
107
107
 
108
108
  const url = 'https://rntba7aqifqx3iywrenb7pq6km0liwsr.lambda-url.us-east-1.on.aws/pinmeapi/process-report/zone-report-processing'
109
109
 
110
- const limit = simpleLimit(100)
110
+ const limit = simpleLimit(1000)
111
111
  const promises = sliced.map((slice, i) => limit(async () => {
112
112
  const now = new Date()
113
113
  return traccar.axios.post(url, {