mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-22 03:25:56 +00:00
eslint
This commit is contained in:
parent
3fa33c87d9
commit
23942f79a8
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue