diff --git a/server/src/tasks.js b/server/src/tasks.js index 600df6f..1e02ab6 100644 --- a/server/src/tasks.js +++ b/server/src/tasks.js @@ -16,12 +16,10 @@ async function updateDevicesTask() { message: 'updateDevicesTask started' }) - const devices = await updateDevicesInfo() + const devicesQnt = await updateDevicesInfo() - let mappings = 0 - - if (devices > 0) { - mappings = await updateUserIdMappings() + if (devicesQnt > 0) { + await updateUserIdMappings() } } catch (e) { logError({