made sure that the address extraction is extracted into its own method

This commit is contained in:
Frank Elsinga
2024-06-13 17:00:11 +02:00
committed by GitHub
parent bd95ccdc64
commit c9132adfc7
7 changed files with 36 additions and 102 deletions

View File

@@ -93,12 +93,7 @@ class SMTP extends NotificationProvider {
if (monitorJSON !== null) {
monitorName = monitorJSON["name"];
if (monitorJSON["type"] === "http" || monitorJSON["type"] === "keyword" || monitorJSON["type"] === "json-query") {
monitorHostnameOrURL = monitorJSON["url"];
} else {
monitorHostnameOrURL = monitorJSON["hostname"];
}
monitorHostnameOrURL = this.extractAdress(monitorJSON);
}
let serviceStatus = "⚠️ Test";