fix: poller functions have to return promises
This commit is contained in:
parent
6f1b0c6e5f
commit
c53c479735
2 changed files with 3 additions and 3 deletions
|
|
@ -370,7 +370,7 @@ function plugins (settings, deviceId) {
|
|||
const sql = `DELETE FROM machine_network_heartbeat h
|
||||
USING (SELECT device_id, max(created) as lastEntry FROM machine_network_heartbeat GROUP BY device_id) d
|
||||
WHERE d.device_id = h.device_id AND h.created < d.lastEntry`
|
||||
db.none(sql)
|
||||
return db.none(sql)
|
||||
}
|
||||
|
||||
function isHd (tx) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue