fix notify bug

This commit is contained in:
Josh Harvey 2016-05-31 16:05:14 +03:00
parent f17cfdfaa9
commit 78d819eb78
2 changed files with 2 additions and 5 deletions

View file

@ -81,7 +81,7 @@ function checkStuckScreen (deviceEvents) {
}
function devicesAndEvents () {
return Promise.all(db.devices, db.machineEvents)
return Promise.all([db.devices(), db.machineEvents()])
.then(arr => ({devices: arr[0], events: arr[1]}))
}
@ -111,9 +111,6 @@ function checkStatus () {
return alerts
})
.catch(function (err) {
console.log(err.stack)
})
}
exports.checkStatus = checkStatus

View file

@ -503,7 +503,7 @@ function pollBalance (cryptoCode, cb) {
walletPlugin.balance(function (err, balance) {
if (err) {
logger.error(err)
logger.error('[%s] Error loading balance: %s', cryptoCode, err.message)
return cb && cb(err)
}