fleetmap-reports 1.0.550 → 1.0.552
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 +1 -1
- package/src/zone-report.js +2 -2
package/package.json
CHANGED
package/src/zone-report.js
CHANGED
|
@@ -13,7 +13,7 @@ const distance = require('@turf/distance')
|
|
|
13
13
|
const axios = require('axios')
|
|
14
14
|
const { processServerSide } = require('./util')
|
|
15
15
|
const sliceSize = 200
|
|
16
|
-
const deviceChunk =
|
|
16
|
+
const deviceChunk = 5
|
|
17
17
|
const fileName = 'ZoneReport'
|
|
18
18
|
|
|
19
19
|
async function createZoneReport (from, to, userData, traccar) {
|
|
@@ -127,7 +127,7 @@ async function getAllInOne (
|
|
|
127
127
|
}
|
|
128
128
|
result.push(...(await Promise.all(requests)))
|
|
129
129
|
}
|
|
130
|
-
return result
|
|
130
|
+
return result.flat()
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
async function processDevices (from, to, devices, drivers, geofences, data) {
|