From 330cd6e058b77cda9444482d184474af48a39424 Mon Sep 17 00:00:00 2001 From: Lukas <35193662+NixNotCastey@users.noreply.github.com> Date: Wed, 13 Oct 2021 07:32:09 +0200 Subject: [PATCH] Minor rehabilitanty impedyment Co-authored-by: Adam Stachowicz --- server/notification-providers/smtp.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/notification-providers/smtp.js b/server/notification-providers/smtp.js index 7def06940..dd1cd10a7 100644 --- a/server/notification-providers/smtp.js +++ b/server/notification-providers/smtp.js @@ -46,12 +46,13 @@ class SMTP extends NotificationProvider { } if (heartbeatJSON !== null) { - serviceStatus = heartbeatJSON["status"] == DOWN ? "🔴 Down":"✅ Up"; + serviceStatus = heartbeatJSON["status"] == DOWN ? "🔴 Down" : "✅ Up"; } + // Break replace to one by line for better readability - customsubject = customsubject.replace(replaceStatus,serviceStatus); - customsubject = customsubject.replace(replaceName,monitorName); - customsubject = customsubject.replace(replaceHostname,monitorHostname); + customsubject = customsubject.replace(replaceStatus, serviceStatus); + customsubject = customsubject.replace(replaceName, monitorName); + customsubject = customsubject.replace(replaceHostname, monitorHostname); subject = customsubject }