Changed return value of updateDBWithOnlineDevices()
This commit is contained in:
parent
ea2f042d70
commit
a051a6d075
|
@ -13,8 +13,10 @@ cron.schedule(
|
|||
'*/5 * * * *',
|
||||
async () => {
|
||||
logMsg('updateDBWithOnlineDevices started.')
|
||||
await updateDBWithOnlineDevices()
|
||||
logMsg('updateDBWithOnlineDevices finished.')
|
||||
|
||||
logMsg(
|
||||
`updateDBWithOnlineDevices updated ${await updateDBWithOnlineDevices()} devices.`
|
||||
)
|
||||
},
|
||||
{}
|
||||
)
|
||||
|
|
|
@ -64,7 +64,7 @@ async function updateDBWithOnlineDevices() {
|
|||
}
|
||||
|
||||
// TODO: pubsub
|
||||
return true
|
||||
return onlineDevices.length
|
||||
}
|
||||
|
||||
export { getOnlineWifiDevices, updateDBWithOnlineDevices }
|
||||
|
|
Loading…
Reference in New Issue
Block a user