Merge branch 'master' into fix-1448-discord-service-url

This commit is contained in:
Jordan Bertasso
2022-05-10 22:53:55 +10:00
committed by GitHub
111 changed files with 5494 additions and 1498 deletions

View File

@@ -40,7 +40,7 @@ class Discord extends NotificationProvider {
}
// If heartbeatJSON is not null, we go into the normal alerting loop.
if (heartbeatJSON["status"] == DOWN) {
if (heartbeatJSON["status"] === DOWN) {
let discorddowndata = {
username: discordDisplayName,
embeds: [{
@@ -75,7 +75,7 @@ class Discord extends NotificationProvider {
await axios.post(notification.discordWebhookUrl, discorddowndata);
return okMsg;
} else if (heartbeatJSON["status"] == UP) {
} else if (heartbeatJSON["status"] === UP) {
let discordupdata = {
username: discordDisplayName,
embeds: [{