clean up lint complaints

This commit is contained in:
Nathan Neulinger 2024-12-27 14:46:41 -06:00
parent 61629cd963
commit 0492276601
2 changed files with 4 additions and 3 deletions

View file

@ -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,

View file

@ -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