Fix variable assignment in

This commit is contained in:
Alex Holliday
2024-10-25 10:49:08 +08:00
parent 70872c368d
commit 50c6e32d6e
+1 -2
View File
@@ -104,8 +104,7 @@ class NetworkService {
monitor: monitor,
template: isAlive === true ? "serverIsUpTemplate" : "serverIsDownTemplate",
context: { monitorName: monitor.name, monitorUrl: monitor.url },
subject:
(subject = `Monitor ${monitor.name} is ${isAlive === true ? "up" : "down"}`),
subject: `Monitor ${monitor.name} is ${isAlive === true ? "up" : "down"}`,
};
this.handleNotification(config);
}