diff --git a/server/notification-providers/lunasea.js b/server/notification-providers/lunasea.js index 3df6fe1aa..4d7136f75 100644 --- a/server/notification-providers/lunasea.js +++ b/server/notification-providers/lunasea.js @@ -9,8 +9,8 @@ class LunaSea extends NotificationProvider { async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { let okMsg = "Sent Successfully."; let lunaseaurl = ""; - if (notification.lunaseaNotificationType === "user") { - lunaseaurl = "https://notify.lunasea.app/v1/custom/user/" + notification.lunaseaDevice; + if (notification.lunaseaTarget === "user") { + lunaseaurl = "https://notify.lunasea.app/v1/custom/user/" + notification.lunaseaUserID; } else { lunaseaurl = "https://notify.lunasea.app/v1/custom/device/" + notification.lunaseaDevice; } diff --git a/src/components/notifications/LunaSea.vue b/src/components/notifications/LunaSea.vue index 230e3b0d3..1ee4a8a51 100644 --- a/src/components/notifications/LunaSea.vue +++ b/src/components/notifications/LunaSea.vue @@ -1,18 +1,33 @@ + +