mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-18 10:28:05 +00:00
clean up lint complaints
This commit is contained in:
parent
61629cd963
commit
0492276601
2 changed files with 4 additions and 3 deletions
|
@ -144,9 +144,9 @@ class Slack extends NotificationProvider {
|
|||
const baseURL = await setting("primaryBaseURL");
|
||||
const serverIdentifier = await setting("serverIdentifier");
|
||||
|
||||
const title = "Uptime Kuma Alert";
|
||||
let title = "Uptime Kuma Alert";
|
||||
if (serverIdentifier) {
|
||||
title = title + " (" + serverIdentifier + ")"
|
||||
title = title + " (" + serverIdentifier + ")";
|
||||
}
|
||||
let data = {
|
||||
"channel": notification.slackchannel,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
const nodemailer = require("nodemailer");
|
||||
const NotificationProvider = require("./notification-provider");
|
||||
const { setSettings, setting } = require("../util-server");
|
||||
const { DOWN } = require("../../src/util");
|
||||
const { Liquid } = require("liquidjs");
|
||||
|
||||
|
@ -49,7 +50,7 @@ class SMTP extends NotificationProvider {
|
|||
|
||||
const serverIdentifier = await setting("serverIdentifier");
|
||||
if (serverIdentifier) {
|
||||
body = body + `\nServer Identifier: ${serverIdentifier}`
|
||||
body = body + `\nServer Identifier: ${serverIdentifier}`;
|
||||
}
|
||||
}
|
||||
// subject and body are templated
|
||||
|
|
Loading…
Reference in a new issue