bug fixes

This commit is contained in:
Josh Harvey 2017-04-16 19:42:46 +03:00
parent f2a95e291a
commit 985e3811e3
14 changed files with 758 additions and 78 deletions

View file

@ -40,8 +40,10 @@ function sendNoAlerts (plugins) {
}
function checkNotification (plugins) {
console.log('DEBUG444')
return checkStatus(plugins)
.then(alertRec => {
console.log('DEBUG445: %j', alertRec)
const currentAlertFingerprint = buildAlertFingerprint(alertRec)
if (!currentAlertFingerprint) {
const inAlert = !!alertFingerprint
@ -67,6 +69,7 @@ function checkNotification (plugins) {
alertFingerprint = currentAlertFingerprint
lastAlertTime = Date.now()
console.log('DEBUG446: %j', rec)
return plugins.sendMessage(rec)
})
.then(results => {