master^2
Bhaskar 4 months ago
parent 7d08ebd39e
commit 6b0bfc9c7e

@ -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}`);

Loading…
Cancel
Save