From 1cd561bd626ecaad9586e21ad410bb7017bf3411 Mon Sep 17 00:00:00 2001 From: Douglas Barone Date: Thu, 10 Dec 2020 08:28:07 -0400 Subject: [PATCH] Initialize var properly --- server/src/cronTasks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/cronTasks.js b/server/src/cronTasks.js index fdbd040..ba38887 100644 --- a/server/src/cronTasks.js +++ b/server/src/cronTasks.js @@ -17,7 +17,7 @@ cron.schedule('*/1 * * * *', async () => { const devices = await updateDevicesInfo() - let mappings = null + let mappings = 0 if (devices > 0) mappings = await updateUserIdMappings()