From 6b0bfc9c7e60cd173f3023fc282e9b7698da1d24 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Wed, 4 Jun 2025 12:18:35 +0530 Subject: [PATCH] changes --- src/controllers/installationController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`);