mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-22 11:35: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
|
// default values in case the user does not want to template
|
||||||
let subject = msg;
|
let subject = msg;
|
||||||
let body = msg;
|
let body = msg;
|
||||||
let use_html_body = false
|
let useHTMLBody = false;
|
||||||
if (heartbeatJSON) {
|
if (heartbeatJSON) {
|
||||||
body = `${msg}\nTime (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`;
|
body = `${msg}\nTime (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ class SMTP extends NotificationProvider {
|
||||||
subject = await engine.render(tpl, context);
|
subject = await engine.render(tpl, context);
|
||||||
}
|
}
|
||||||
if (customBody !== "") {
|
if (customBody !== "") {
|
||||||
use_html_body = notification.htmlBody || false
|
useHTMLBody = notification.htmlBody || false;
|
||||||
const tpl = engine.parse(customBody);
|
const tpl = engine.parse(customBody);
|
||||||
body = await engine.render(tpl, context);
|
body = await engine.render(tpl, context);
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ class SMTP extends NotificationProvider {
|
||||||
bcc: notification.smtpBCC,
|
bcc: notification.smtpBCC,
|
||||||
to: notification.smtpTo,
|
to: notification.smtpTo,
|
||||||
subject: subject,
|
subject: subject,
|
||||||
[use_html_body ? 'html' : 'text']: body
|
[useHTMLBody ? "html" : "text"]: body
|
||||||
});
|
});
|
||||||
|
|
||||||
return okMsg;
|
return okMsg;
|
||||||
|
|
Loading…
Add table
Reference in a new issue