fleetmap-reports 2.0.224 → 2.0.225

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.224",
3
+ "version": "2.0.225",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -10,6 +10,7 @@ const traccarConfig = {
10
10
  }
11
11
  const axios = require('axios').create({ ...traccarConfig.baseOptions, baseURL: traccarConfig.basePath })
12
12
  process.env.TRACCAR_API_REPORTS = 'https://ltqgfyvcklxzaonv7h4rlmghai0rszop.lambda-url.us-east-1.on.aws/api'
13
+ process.env.SERVER_HOST = 'api.pinme.io'
13
14
  const getReports = async (email, password) => {
14
15
  try {
15
16
  email = email || process.env.email
@@ -95,7 +95,10 @@ async function createZoneReport (from, to, userData, traccar) {
95
95
  deviceCount: deviceCount++,
96
96
  devices,
97
97
  reportRangeDays
98
- }).then(response => response.data)
98
+ }).then(response => {
99
+ console.log(url, 'done')
100
+ return response.data
101
+ }).catch(e => console.error(e.message, e.response?.data))
99
102
  )
100
103
  const results = await Promise.all(promises)
101
104
  results.forEach(processed => {