fix: poller functions have to return promises

This commit is contained in:
Rafael Taranto 2025-04-16 08:31:19 +01:00
parent 6f1b0c6e5f
commit c53c479735
2 changed files with 3 additions and 3 deletions

View file

@ -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) {