fleetmap-reports 1.0.852 → 1.0.853

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.852",
3
+ "version": "1.0.853",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -106,6 +106,7 @@ async function processDevices (from, to, devices, data, traccar, userData) {
106
106
  }
107
107
 
108
108
  const alerts = deviceAlerts.filter(a => userData.allWeek || !userData.weekDays || (!a.position || isInside(a.position.fixTime, a.position.fixTime, userData)))
109
+ .filter(a => a.position).sort((a, b) => a.position.fixTime.localeCompare(b.position.fixTime))
109
110
  console.log('LOADING_MESSAGE:' + d.name)
110
111
  console.log(`PROGRESS_PERC:${++i / devices.length * 100}`)
111
112