From 48b637d4c8c70ef1f55521bb34ec42037820c81a Mon Sep 17 00:00:00 2001 From: Bobby Ore Date: Thu, 9 Feb 2023 08:49:19 -0600 Subject: [PATCH] Refactor to not introduce a breaking change --- server/notification-providers/lunasea.js | 6 +++--- src/components/notifications/LunaSea.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/notification-providers/lunasea.js b/server/notification-providers/lunasea.js index 0d9bb26a..3df6fe1a 100644 --- a/server/notification-providers/lunasea.js +++ b/server/notification-providers/lunasea.js @@ -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 { diff --git a/src/components/notifications/LunaSea.vue b/src/components/notifications/LunaSea.vue index 57947183..230e3b0d 100644 --- a/src/components/notifications/LunaSea.vue +++ b/src/components/notifications/LunaSea.vue @@ -10,7 +10,7 @@

- +

*{{ $t("Required") }}