fleetmap-reports 2.0.368 → 2.0.370
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
|
@@ -29,7 +29,7 @@ async function createFuelConsumptionReport (from, to, userData, traccar) {
|
|
|
29
29
|
|
|
30
30
|
if (isClientSide() && (devices.length > 50 || ((new Date(to).getTime() - new Date(from).getTime()) > (1000 * 60 * 60 * 24 * 15)))) {
|
|
31
31
|
const sliced = automaticReports.sliceArray(devices, 1)
|
|
32
|
-
allData.devices = await executeServerSide('fuel-consumption-report', sliced, from, to, userData, devices.length, traccar,
|
|
32
|
+
allData.devices = await executeServerSide('fuel-consumption-report', sliced, from, to, userData, devices.length, traccar, 10)
|
|
33
33
|
allData.totalDevices = allData.devices.length
|
|
34
34
|
reportData.push(allData)
|
|
35
35
|
return reportData
|
|
@@ -211,7 +211,7 @@ async function runServerSideGrid (from, to, userData, deviceIdsByDriver, traccar
|
|
|
211
211
|
const url = `https://${getServerHost()}/pinmeapi/reports/driverranking-report`
|
|
212
212
|
const rawRows = []
|
|
213
213
|
let completed = 0
|
|
214
|
-
const maxConcurrent =
|
|
214
|
+
const maxConcurrent = 20
|
|
215
215
|
|
|
216
216
|
for (let i = 0; i < cells.length; i += maxConcurrent) {
|
|
217
217
|
const batch = cells.slice(i, i + maxConcurrent)
|