fleetmap-reports 1.0.487 → 1.0.488

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.487",
3
+ "version": "1.0.488",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -113,7 +113,7 @@ async function createSpeedingReportByDriver (from, to, userData, traccarInstance
113
113
  async function getEvents (traccarInstance, from, to, devices, userData, deviceCount, totalDevices, sliceSize) {
114
114
  if (process.env.PROCESS_HERE_EVENTS && process.env.PROCESS_HERE_EVENTS === 'server') {
115
115
  const url = `${process.env.REPORTS_SERVER}/reports/speeding-report/getEvents`
116
- return axios.post(url, { from, to, devices, userData, deviceCount, totalDevices, sliceSize }).then(d => d.data)
116
+ return axios.post(url, { from, to, devices, userData, deviceCount, totalDevices, sliceSize }, { withCredentials: true }).then(d => d.data)
117
117
  } else {
118
118
  const geofencesFeatures = userData.geofences.filter(g => g.area.startsWith('POLYGON') &&
119
119
  g.attributes.speedLimit).map(g => convertToFeature(g))