fix notify bug
This commit is contained in:
parent
f17cfdfaa9
commit
78d819eb78
2 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue