fleetmap-reports 1.0.246 → 1.0.247

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.
@@ -176,7 +176,7 @@
176
176
  <workItem from="1637868513425" duration="1650000" />
177
177
  <workItem from="1637928687573" duration="37000" />
178
178
  <workItem from="1637931438656" duration="621000" />
179
- <workItem from="1637952151523" duration="9616000" />
179
+ <workItem from="1637952151523" duration="10352000" />
180
180
  </task>
181
181
  <task id="LOCAL-00001" summary="Fix getStyle">
182
182
  <created>1636983717385</created>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.246",
3
+ "version": "1.0.247",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -150,6 +150,8 @@ async function processDevices(from, to, devices, geofences, drivers, data, roadS
150
150
 
151
151
  await getEventsPosition(from , to, devices, geofences, drivers, data, roadSpeedLimits)
152
152
 
153
+ console.log(data)
154
+
153
155
  for (const d of devices) {
154
156
  const alerts = data.filter(t => t.deviceId === d.id)
155
157
 
@@ -173,9 +175,10 @@ async function processDevices(from, to, devices, geofences, drivers, data, roadS
173
175
  async function getEventsPosition(from, to, devices, geofences, drivers, events, roadSpeedLimits){
174
176
 
175
177
  const deviceIds = [...new Set(events.map(e => e.deviceId))]
176
- console.log('deviceIds',deviceIds)
177
178
  const routeData = await traccar.getRoute(traccarInstance, from, to, deviceIds.map(id => { return { id: id } } ))
178
179
 
180
+ console.log(events)
181
+
179
182
  for (const d of devices) {
180
183
  let alerts = events.filter(t => t.deviceId === d.id)
181
184