Prevent unnecessary user-id update
This commit is contained in:
parent
1f7e8724da
commit
12db9c49b2
|
@ -16,7 +16,10 @@ cron.schedule('*/1 * * * *', async () => {
|
|||
logMsg('updateDevicesInfo started.')
|
||||
|
||||
const devices = await updateDevicesInfo()
|
||||
const mappings = await updateUserIdMappings()
|
||||
|
||||
let mappings = null
|
||||
|
||||
if (devices > 0) mappings = await updateUserIdMappings()
|
||||
|
||||
logMsg(
|
||||
`updateDevicesInfo updated ${devices} devices and ${mappings} user-id mappings.`
|
||||
|
|
Loading…
Reference in New Issue
Block a user