fleetmap-reports 2.0.301 → 2.0.302
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/location-report.js +2 -1
package/package.json
CHANGED
package/src/location-report.js
CHANGED
|
@@ -73,7 +73,7 @@ async function createLocationReportByDriver (from, to, userData, traccar) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
async function _getDriverRoute (traccar, from, to, slice, deviceCount, devices, userData, retry = 3) {
|
|
76
|
-
const url =
|
|
76
|
+
const url = 'https://rntba7aqifqx3iywrenb7pq6km0liwsr.lambda-url.us-east-1.on.aws/pinmeapi/process-report/get-driver-route'
|
|
77
77
|
return traccar.axios.post(url, {
|
|
78
78
|
from,
|
|
79
79
|
to,
|
|
@@ -189,6 +189,7 @@ async function processDrivers (from, to, userData, data) {
|
|
|
189
189
|
const result = []
|
|
190
190
|
for (const d of userData.drivers) {
|
|
191
191
|
const { route } = await getDriverData(d, data, userData)
|
|
192
|
+
|
|
192
193
|
if (route.length > 0) {
|
|
193
194
|
route.sort((a, b) => new Date(a.fixTime).getTime() - new Date(b.fixTime).getTime())
|
|
194
195
|
|