fleetmap-reports 1.0.787 → 1.0.788

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.787",
3
+ "version": "1.0.788",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -14,7 +14,7 @@ const tripHelper = require('./util/trips')
14
14
  const { devicesToProcess } = require('./util/device')
15
15
  const { getDriverData } = require('./util/driver')
16
16
  const { calculateConsumption } = require('./util/fuel')
17
- const { default: axios } = require('axios')
17
+ const axios = require('axios')
18
18
 
19
19
  const fileName = 'ActivityReport'
20
20
 
@@ -88,7 +88,7 @@ async function executeServerSide (allData, sliced, from, to, userData, totalDevi
88
88
  sliceSize: 50
89
89
  }, { withCredentials: true }).then(d => d.data)
90
90
 
91
- allData.devices.push(data.devices)
91
+ allData.devices.push(...data.devices)
92
92
  deviceCount += devices.length
93
93
  }
94
94
  }