diff --git a/server/notification-providers/pushdeer.js b/server/notification-providers/pushdeer.js index 6831b8cce..620c1b20a 100644 --- a/server/notification-providers/pushdeer.js +++ b/server/notification-providers/pushdeer.js @@ -2,9 +2,9 @@ const NotificationProvider = require("./notification-provider"); const axios = require("axios"); const { DOWN, UP } = require("../../src/util"); -class Pushdeer extends NotificationProvider { +class PushDeer extends NotificationProvider { - name = "Pushdeer"; + name = "PushDeer"; async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { let okMsg = "Sent Successfully."; @@ -36,7 +36,7 @@ class Pushdeer extends NotificationProvider { this.throwGeneralAxiosError(error); } if (res.data.content.result.length === 0) { - let error = "Invalid Pushdeer key"; + let error = "Invalid PushDeer key"; this.throwGeneralAxiosError(error); } else if (JSON.parse(res.data.content.result[0]).success != "ok") { let error = "Unknown error"; @@ -49,4 +49,4 @@ class Pushdeer extends NotificationProvider { } } -module.exports = Pushdeer; +module.exports = PushDeer; diff --git a/server/notification.js b/server/notification.js index e3d37bafb..842e0e2f8 100644 --- a/server/notification.js +++ b/server/notification.js @@ -32,7 +32,7 @@ const GoogleChat = require("./notification-providers/google-chat"); const Gorush = require("./notification-providers/gorush"); const Alerta = require("./notification-providers/alerta"); const OneBot = require("./notification-providers/onebot"); -const Pushdeer = require("./notification-providers/pushdeer"); +const PushDeer = require("./notification-providers/pushdeer"); class Notification { @@ -76,7 +76,7 @@ class Notification { new Gorush(), new Alerta(), new OneBot(), - new Pushdeer(), + new PushDeer(), ]; for (let item of list) { diff --git a/src/components/notifications/Pushdeer.vue b/src/components/notifications/PushDeer.vue similarity index 96% rename from src/components/notifications/Pushdeer.vue rename to src/components/notifications/PushDeer.vue index 80d0f48ff..c2b7f5cb0 100644 --- a/src/components/notifications/Pushdeer.vue +++ b/src/components/notifications/PushDeer.vue @@ -1,6 +1,6 @@