|
@ -6,7 +6,7 @@ class Gotify extends NotificationProvider { |
|
|
name = "gotify"; |
|
|
name = "gotify"; |
|
|
|
|
|
|
|
|
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { |
|
|
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { |
|
|
let okMsg = "Sent Successfully. "; |
|
|
let okMsg = "Sent Successfully."; |
|
|
try { |
|
|
try { |
|
|
if (notification.gotifyserverurl && notification.gotifyserverurl.endsWith("/")) { |
|
|
if (notification.gotifyserverurl && notification.gotifyserverurl.endsWith("/")) { |
|
|
notification.gotifyserverurl = notification.gotifyserverurl.slice(0, -1); |
|
|
notification.gotifyserverurl = notification.gotifyserverurl.slice(0, -1); |
|
|