fleetmap-reports 2.0.158 → 2.0.159

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.158",
3
+ "version": "2.0.159",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -130,7 +130,7 @@ async function createSpeedingReportByDriver (from, to, userData, traccarInstance
130
130
  }
131
131
 
132
132
  async function getEvents (traccarInstance, from, to, devices, userData, deviceCount, totalDevices, sliceSize) {
133
- if (processServerSide()) {
133
+ if (processServerSide() && !userData.useVehicleSpeedLimit) {
134
134
  const cookie = await axios.get('/pinmeapi/cookie/get', { withCredentials: true }).then(d => d.data)
135
135
  const url = `https://${getServerHost()}/pinmeapi/reports/speeding-report/getEvents`
136
136
  return axios.post(url, { from, to, devices, userData, deviceCount, totalDevices, sliceSize, cookie }, { withCredentials: true }).then(d => d.data)