ashok 4 months ago
commit ed4c7d1eba

@ -4034,7 +4034,7 @@ cron.schedule("* * * * *", async () => {
// OR there are disconnected slaves and none of them are active // OR there are disconnected slaves and none of them are active
const shouldRaiseTicket = const shouldRaiseTicket =
(masterIsDisconnected && !masterAlreadyActive) || (masterIsDisconnected && !masterAlreadyActive) ||
(disconnectedSlaves.length > 0 && !anySlaveAlreadyActive); ( !anySlaveAlreadyActive);
if (shouldRaiseTicket) { if (shouldRaiseTicket) {
console.log(`⚠️ Raising ticket for master: ${hardwareId}`); console.log(`⚠️ Raising ticket for master: ${hardwareId}`);

Loading…
Cancel
Save