fleetmap-reports 2.0.14 → 2.0.16

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": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/kms-report.js CHANGED
@@ -458,7 +458,7 @@ function getExcelContent (userData, d, translations) {
458
458
 
459
459
  if (userData.groupByDay) {
460
460
  const partner = getUserPartner(userData.user)
461
- if (d.days) {
461
+ if (d.days && d.device) {
462
462
  if (partner.reports.kmsReportDaysInColumns) {
463
463
  const vehicle = {
464
464
  name: d.device.name,
@@ -349,7 +349,7 @@ async function invokeValhalla (route, i, chunk, country, threshold, results, ret
349
349
  lon: p.longitude,
350
350
  lat: p.latitude
351
351
  }))
352
- }, { timeout: 20000 })
352
+ }, { timeout: 60000 })
353
353
  .then(r => r.data)
354
354
  // eslint-disable-next-line camelcase
355
355
  matched_points.forEach((mp, mIndex) => {