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 +1 -1
- package/src/speeding-report.js +1 -1
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -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') &&
|