mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-18 18:38:07 +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 baseURL = await setting("primaryBaseURL");
|
||||||
const serverIdentifier = await setting("serverIdentifier");
|
const serverIdentifier = await setting("serverIdentifier");
|
||||||
|
|
||||||
const title = "Uptime Kuma Alert";
|
let title = "Uptime Kuma Alert";
|
||||||
if (serverIdentifier) {
|
if (serverIdentifier) {
|
||||||
title = title + " (" + serverIdentifier + ")"
|
title = title + " (" + serverIdentifier + ")";
|
||||||
}
|
}
|
||||||
let data = {
|
let data = {
|
||||||
"channel": notification.slackchannel,
|
"channel": notification.slackchannel,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
const nodemailer = require("nodemailer");
|
const nodemailer = require("nodemailer");
|
||||||
const NotificationProvider = require("./notification-provider");
|
const NotificationProvider = require("./notification-provider");
|
||||||
|
const { setSettings, setting } = require("../util-server");
|
||||||
const { DOWN } = require("../../src/util");
|
const { DOWN } = require("../../src/util");
|
||||||
const { Liquid } = require("liquidjs");
|
const { Liquid } = require("liquidjs");
|
||||||
|
|
||||||
|
@ -49,7 +50,7 @@ class SMTP extends NotificationProvider {
|
||||||
|
|
||||||
const serverIdentifier = await setting("serverIdentifier");
|
const serverIdentifier = await setting("serverIdentifier");
|
||||||
if (serverIdentifier) {
|
if (serverIdentifier) {
|
||||||
body = body + `\nServer Identifier: ${serverIdentifier}`
|
body = body + `\nServer Identifier: ${serverIdentifier}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// subject and body are templated
|
// subject and body are templated
|
||||||
|
|
Loading…
Reference in a new issue