From 23942f79a8252355cdd1d00ef2bf8a3b93172aca Mon Sep 17 00:00:00 2001 From: youpie Date: Thu, 20 Feb 2025 00:00:33 +0100 Subject: [PATCH] eslint --- server/notification-providers/smtp.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/notification-providers/smtp.js b/server/notification-providers/smtp.js index e7f86f014..f0d0ad8da 100644 --- a/server/notification-providers/smtp.js +++ b/server/notification-providers/smtp.js @@ -44,7 +44,7 @@ class SMTP extends NotificationProvider { // default values in case the user does not want to template let subject = msg; let body = msg; - let use_html_body = false + let useHTMLBody = false; if (heartbeatJSON) { body = `${msg}\nTime (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`; } @@ -60,7 +60,7 @@ class SMTP extends NotificationProvider { subject = await engine.render(tpl, context); } if (customBody !== "") { - use_html_body = notification.htmlBody || false + useHTMLBody = notification.htmlBody || false; const tpl = engine.parse(customBody); body = await engine.render(tpl, context); } @@ -74,7 +74,7 @@ class SMTP extends NotificationProvider { bcc: notification.smtpBCC, to: notification.smtpTo, subject: subject, - [use_html_body ? 'html' : 'text']: body + [useHTMLBody ? "html" : "text"]: body }); return okMsg;