diff --git a/src/controllers/installationController.js b/src/controllers/installationController.js index 480dd07b..2fb0c226 100644 --- a/src/controllers/installationController.js +++ b/src/controllers/installationController.js @@ -4034,7 +4034,7 @@ cron.schedule("* * * * *", async () => { // OR there are disconnected slaves and none of them are active const shouldRaiseTicket = (masterIsDisconnected && !masterAlreadyActive) || - (disconnectedSlaves.length > 0 && !anySlaveAlreadyActive); + ( !anySlaveAlreadyActive); if (shouldRaiseTicket) { console.log(`⚠️ Raising ticket for master: ${hardwareId}`);