Refactor to not introduce a breaking change

This commit is contained in:
Bobby Ore
2023-02-09 08:49:19 -06:00
parent 3a361d2621
commit 48b637d4c8
2 changed files with 4 additions and 4 deletions

View File

@@ -9,10 +9,10 @@ class LunaSea extends NotificationProvider {
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
let okMsg = "Sent Successfully.";
let lunaseaurl = "";
if (notification.lunaseaNotificationType === "device") {
lunaseaurl = "https://notify.lunasea.app/v1/custom/device/" + notification.lunaseaId;
if (notification.lunaseaNotificationType === "user") {
lunaseaurl = "https://notify.lunasea.app/v1/custom/user/" + notification.lunaseaDevice;
} else {
lunaseaurl = "https://notify.lunasea.app/v1/custom/user/" + notification.lunaseaId;
lunaseaurl = "https://notify.lunasea.app/v1/custom/device/" + notification.lunaseaDevice;
}
try {