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") }}