Delete machine pings on unpair

This commit is contained in:
Rafael Taranto 2019-05-27 22:47:01 -03:00 committed by Josh Harvey
parent 8330b95de1
commit 09332c37db
2 changed files with 4 additions and 1 deletions

View file

@ -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(', ')
}