diff --git a/server/notification-providers/slack.js b/server/notification-providers/slack.js index 202aef12b..3566fb7ef 100644 --- a/server/notification-providers/slack.js +++ b/server/notification-providers/slack.js @@ -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, diff --git a/server/notification-providers/smtp.js b/server/notification-providers/smtp.js index 4e614fa06..a62973bd7 100644 --- a/server/notification-providers/smtp.js +++ b/server/notification-providers/smtp.js @@ -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