|
|
|
@ -8,7 +8,14 @@ class PushDeer extends NotificationProvider {
|
|
|
|
|
|
|
|
|
|
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
|
|
|
|
|
let okMsg = "Sent Successfully.";
|
|
|
|
|
let pushdeerlink = "https://api2.pushdeer.com/message/push";
|
|
|
|
|
let defaultServer = "https://api2.pushdeer.com";
|
|
|
|
|
let endpoint = "/message/push";
|
|
|
|
|
let pushdeerlink;
|
|
|
|
|
if (notification.pushdeerServer) {
|
|
|
|
|
pushdeerlink = `${notification.pushdeerServer}${endpoint}`;
|
|
|
|
|
} else {
|
|
|
|
|
pushdeerlink = `${defaultServer}${endpoint}`;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let valid = msg != null && monitorJSON != null && heartbeatJSON != null;
|
|
|
|
|
|
|
|
|
|