Initialize var properly

This commit is contained in:
Douglas Barone 2020-12-10 08:28:07 -04:00
parent 654c220d91
commit 1cd561bd62

View File

@ -17,7 +17,7 @@ cron.schedule('*/1 * * * *', async () => {
const devices = await updateDevicesInfo() const devices = await updateDevicesInfo()
let mappings = null let mappings = 0
if (devices > 0) mappings = await updateUserIdMappings() if (devices > 0) mappings = await updateUserIdMappings()