fix alert log message

This commit is contained in:
Josh Harvey 2016-08-03 18:06:29 +03:00
parent c3d8168f49
commit ab6c985f1a

View file

@ -732,7 +732,7 @@ function checkNotification () {
})
.then(results => {
console.log('DEBUG25')
if (results.length > 0) logger.debug('Successfully sent alerts')
if (results && results.length > 0) logger.debug('Successfully sent alerts')
})
.catch(err => {
logger.error(err)