fleetmap-reports 2.0.87 → 2.0.89

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.87",
3
+ "version": "2.0.89",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/util/utils.js CHANGED
@@ -233,7 +233,7 @@ function weekDaySelected (date, weekDays) {
233
233
  async function executeServerSide (type, sliced, from, to, userData, totalItems, { axios }, maxRequests = 10) {
234
234
  let itemsCount = 0
235
235
  console.log('PROGRESS_PERC:1')
236
- const cookie = await axios.get('/pinmeapi/cookie/get', { withCredentials: true }).then(d => d.data)
236
+ const cookie = await axios.get(`https://${getServerHost()}/pinmeapi/cookie/get`, { withCredentials: true }).then(d => d.data)
237
237
  const reportData = []
238
238
  for (let i = 0; i < sliced.length; i += maxRequests) {
239
239
  const _sliced = sliced.slice(i, i + maxRequests)