fleetmap-reports 1.0.488 → 1.0.489

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.488",
3
+ "version": "1.0.489",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -112,7 +112,7 @@ async function createSpeedingReportByDriver (from, to, userData, traccarInstance
112
112
 
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
- const url = `${process.env.REPORTS_SERVER}/reports/speeding-report/getEvents`
115
+ const url = `${process.env.REPORTS_SERVER || ''}/reports/speeding-report/getEvents`
116
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') &&