fleetmap-reports 1.0.348 → 1.0.349

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.348",
3
+ "version": "1.0.349",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -3,7 +3,6 @@ const messages = require('../lang')
3
3
  const jsPDF = require('jspdf')
4
4
  const {convertMS, convertToLocaleString, convertToLocaleDateString, convertToLocaleTimeString} = require("./util/utils")
5
5
  require('jspdf-autotable')
6
- const drivers = require("./util/driver")
7
6
  const {getUserPartner} = require("fleetmap-partners")
8
7
  const {headerFromUser, addTable} = require("./util/pdfDocument")
9
8
  const {getStyle} = require("./reportStyle")
@@ -101,7 +100,7 @@ async function createTripReportByGroup(from, to, userData, traccar) {
101
100
  }
102
101
 
103
102
  async function createTripReportByDriver(from, to, userData, traccar){
104
- const devices = await drivers.devicesByDriver(traccar, from, to, userData.drivers, userData.devices)
103
+ const devices = await traccar.devices.devicesGet().then(d => d.data)
105
104
  console.log(devices.length)
106
105
 
107
106
  if(!devices.length){