fleetmap-reports 2.0.288 → 2.0.289

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.288",
3
+ "version": "2.0.289",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -171,32 +171,7 @@ function processDevices (from, to, devices, data) {
171
171
  const devicesResult = []
172
172
 
173
173
  for (const d of devices) {
174
- const positions = data.route.filter(t => t.deviceId === d.id)
175
-
176
- const lighterPositions = positions.map(p => {
177
- return {
178
- id: p.id,
179
- fixTime: p.fixTime,
180
- address: p.address,
181
- speed: p.speed,
182
- latitude: p.latitude,
183
- longitude: p.longitude,
184
- attributes: {
185
- driverUniqueId: p.attributes.driverUniqueId,
186
- temp1: p.attributes.temp1,
187
- temp2: p.attributes.temp2,
188
- door1: p.attributes.door1,
189
- door2: p.attributes.door2,
190
- sensor: p.attributes.sensor,
191
- rain: p.attributes.rain,
192
- ignition: p.attributes.ignition,
193
- alarm: p.attributes.alarm,
194
- input: p.attributes.input,
195
- di2: p.attributes.di2,
196
- di3: p.attributes.di3
197
- }
198
- }
199
- })
174
+ const lighterPositions = data.route.filter(t => t.deviceId === d.id)
200
175
  if (lighterPositions.length > 0) {
201
176
  devicesResult.push({
202
177
  device: d,