fleetmap-reports 2.0.175 → 2.0.176
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/sensor-report.js +4 -2
package/package.json
CHANGED
package/src/sensor-report.js
CHANGED
|
@@ -87,7 +87,7 @@ async function create (from, to, userData, traccar) {
|
|
|
87
87
|
deviceCount = deviceCount + slice.length
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
return result
|
|
90
|
+
return [{ devices: result }]
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
function groupByDay (rows, dates) {
|
|
@@ -325,7 +325,9 @@ function getTotalDuration (rows) {
|
|
|
325
325
|
return convertMS(rows.reduce((a, b) => a + b[1].totalDuration, 0), false)
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
function exportToExcel (userData, reportData) {
|
|
328
|
+
function exportToExcel (userData, reportData) {
|
|
329
|
+
|
|
330
|
+
}
|
|
329
331
|
|
|
330
332
|
exports.exportToPDF = exportToPDF
|
|
331
333
|
exports.exportToExcel = exportToExcel
|