fleetmap-reports 2.0.252 → 2.0.254
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 +1 -1
- package/src/util/traccar.js +2 -2
package/package.json
CHANGED
package/src/util/traccar.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
const automaticReports = require('../automaticReports')
|
|
2
2
|
const { convertFromUTC, isClientSide, convertFromLocal } = require('./utils')
|
|
3
3
|
const path = require('path')
|
|
4
|
-
const Piscina = require('piscina')
|
|
5
4
|
const { cleanPositions, filterPosition } = require('./route')
|
|
6
|
-
const piscina = new Piscina()
|
|
7
5
|
async function getRoute (traccar, from, to, devices) {
|
|
8
6
|
const devicesToSlice = devices.slice()
|
|
9
7
|
|
|
@@ -108,6 +106,8 @@ function getCookie (traccar) {
|
|
|
108
106
|
|
|
109
107
|
function streamJson (traccar, u, filter) {
|
|
110
108
|
const cookie = getCookie(traccar)
|
|
109
|
+
const Piscina = require('piscina')
|
|
110
|
+
const piscina = new Piscina()
|
|
111
111
|
return piscina.run({
|
|
112
112
|
url: traccar.axios.defaults.baseURL + u,
|
|
113
113
|
cookie,
|