fleetmap-reports 1.0.271 → 1.0.272

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.271",
3
+ "version": "1.0.272",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -242,7 +242,7 @@ async function getHereEvents(devices, routes, threshold){
242
242
  try {
243
243
  const results = await here.routeMatch(positions)
244
244
  console.log('results', results)
245
- const hereAlerts = results.filter(r => r.currentSpeedKmh > (r.speedLimit + threshold)).map(r => {
245
+ const hereAlerts = results.filter(r => r.currentSpeedKmh > (parseInt(r.speedLimit) + threshold)).map(r => {
246
246
  const position = positions.find(p => new Date(p.fixTime).getTime() === r.timestamp)
247
247
  return {
248
248
  ...r,