fleetmap-reports 1.0.244 → 1.0.245
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/.idea/workspace.xml +2 -1
- package/package.json +1 -1
- package/src/kms-report.js +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
4
|
<list default="true" id="eb665c86-c893-4333-bd2a-721dc27980b9" name="Changes" comment="kms report with parallel requests">
|
|
5
|
+
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
5
6
|
<change beforePath="$PROJECT_DIR$/src/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.js" afterDir="false" />
|
|
6
7
|
<change beforePath="$PROJECT_DIR$/src/index.test.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.test.js" afterDir="false" />
|
|
7
8
|
<change beforePath="$PROJECT_DIR$/src/kms-report.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/kms-report.js" afterDir="false" />
|
|
@@ -171,7 +172,7 @@
|
|
|
171
172
|
<workItem from="1637868513425" duration="1650000" />
|
|
172
173
|
<workItem from="1637928687573" duration="37000" />
|
|
173
174
|
<workItem from="1637931438656" duration="621000" />
|
|
174
|
-
<workItem from="1637952151523" duration="
|
|
175
|
+
<workItem from="1637952151523" duration="4408000" />
|
|
175
176
|
</task>
|
|
176
177
|
<task id="LOCAL-00001" summary="Fix getStyle">
|
|
177
178
|
<created>1636983717385</created>
|
package/package.json
CHANGED
package/src/kms-report.js
CHANGED
|
@@ -63,7 +63,7 @@ function processDevices(from, to, devices, data) {
|
|
|
63
63
|
const dayTrips = groupedTrips.get(key)
|
|
64
64
|
const day = {
|
|
65
65
|
date: new Date(key),
|
|
66
|
-
kms: dayTrips.reduce((a, b) => a + b.
|
|
66
|
+
kms: dayTrips.reduce((a, b) => a + b.distance, 0) || 0
|
|
67
67
|
}
|
|
68
68
|
days.push(day)
|
|
69
69
|
})
|