fleetmap-reports 1.0.565 → 1.0.567
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/events-report.js +2 -1
package/package.json
CHANGED
package/src/events-report.js
CHANGED
|
@@ -270,8 +270,9 @@ function deviceName (device) {
|
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
function getAlertInfo (drivers, alert, device, translations) {
|
|
273
|
+
console.log('getAlertInfo', drivers, alert, device, translations)
|
|
273
274
|
if (alert.type === 'alarm' && alert.position) {
|
|
274
|
-
getDigitalPortValue(alert.position, 1, translations, device.attributes)
|
|
275
|
+
return getDigitalPortValue(alert.position, 1, translations, device.attributes)
|
|
275
276
|
}
|
|
276
277
|
if (alert.type === 'deviceOverspeed') {
|
|
277
278
|
return Math.round(alert.attributes.speed * 1.85200) + ' Km/h'
|