fleetmap-reports 1.0.402 → 1.0.403

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": "1.0.402",
3
+ "version": "1.0.403",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -87,7 +87,7 @@ async function createActivityReportByDevice (from, to, userData, traccarInstance
87
87
  trips,
88
88
  route,
89
89
  summary
90
- } = await traccar.getAllInOne(traccarInstance, from, to, devices, true, true, false, !userData.groupByDay, deviceCount)
90
+ } = await traccar.getAllInOne(traccarInstance, from, to, devices, true, true, false, !userData.groupByDay, deviceCount, allDevices.length)
91
91
 
92
92
  if (userData.groupByDay) {
93
93
  console.log('trips:' + trips.length)
@@ -299,6 +299,7 @@ async function exportActivityReportToPDF (userData, reportData) {
299
299
  const translations = getTranslations(userData)
300
300
 
301
301
  if (reportData.devices || reportData.drivers) {
302
+ // eslint-disable-next-line new-cap
302
303
  const doc = new jsPDF.jsPDF('l')
303
304
  await headerFromUser(doc, translations.report.titleActivityReport, userData.user)
304
305