Refactor to not introduce a breaking change

pull/2744/head
Bobby Ore 2 years ago
parent 3a361d2621
commit 48b637d4c8

@ -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 {

@ -10,7 +10,7 @@
</p>
</div>
<label for="lunasea-device" class="form-label">{{ $t("LunaSea ID") }}<span style="color: red;"><sup>*</sup></span></label>
<input id="lunasea-device" v-model="$parent.notification.lunaseaId" type="text" class="form-control" required>
<input id="lunasea-device" v-model="$parent.notification.lunaseaDevice" type="text" class="form-control" required>
<div class="form-text">
<p><span style="color: red;"><sup>*</sup></span>{{ $t("Required") }}</p>
</div>

Loading…
Cancel
Save