mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-09 23:24:07 -08:00
Minor rehabilitanty impedyment
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
30d8aadf12
commit
330cd6e058
|
@ -46,12 +46,13 @@ class SMTP extends NotificationProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (heartbeatJSON !== null) {
|
if (heartbeatJSON !== null) {
|
||||||
serviceStatus = heartbeatJSON["status"] == DOWN ? "🔴 Down":"✅ Up";
|
serviceStatus = heartbeatJSON["status"] == DOWN ? "🔴 Down" : "✅ Up";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Break replace to one by line for better readability
|
// Break replace to one by line for better readability
|
||||||
customsubject = customsubject.replace(replaceStatus,serviceStatus);
|
customsubject = customsubject.replace(replaceStatus, serviceStatus);
|
||||||
customsubject = customsubject.replace(replaceName,monitorName);
|
customsubject = customsubject.replace(replaceName, monitorName);
|
||||||
customsubject = customsubject.replace(replaceHostname,monitorHostname);
|
customsubject = customsubject.replace(replaceHostname, monitorHostname);
|
||||||
|
|
||||||
subject = customsubject
|
subject = customsubject
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue