fleetmap-reports 2.0.292 → 2.0.294

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.292",
3
+ "version": "2.0.294",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/util/trips.js CHANGED
@@ -159,6 +159,7 @@ function calculateTrip (device, route) {
159
159
  return {
160
160
  deviceId: device.id,
161
161
  deviceName: device.name,
162
+ model: device.model,
162
163
  distance: calculateDistance(route, device.attributes['report.ignoreOdometer']) * 1000,
163
164
  averageSpeed: Math.round((route.map(p => p.speed).reduce((a, b) => a + b, 0)) / route.length),
164
165
  maxSpeed: route.map(p => p.speed).reduce(function (a, b) { return Math.max(a, b) }),