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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue