Delete machine pings on unpair
This commit is contained in:
parent
8330b95de1
commit
09332c37db
2 changed files with 4 additions and 1 deletions
|
|
@ -229,6 +229,8 @@ function alertSubject (alertRec) {
|
|||
alerts = _.concat(alerts, alertRec.devices[device])
|
||||
})
|
||||
|
||||
if (alerts.length === 0) return null
|
||||
|
||||
const alertTypes = _.map(codeDisplay, _.uniq(_.map('code', alerts))).sort()
|
||||
return '[Lamassu] Errors reported: ' + alertTypes.join(', ')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue