Stop execution in the event of an unwanted platform.

This commit is contained in:
Skorpios committed 2025-02-04 14:50:16 -08:00
1 parent 1d9f94c872
commit e44cbf376f
1 file changed
+8
+8
View File
@@ -36,6 +36,14 @@ class NotificationService {
text: `Monitor ${monitor.name} is ${status ? "up" : "down"}. URL: ${monitor.url}`
};
url = `${TELEGRAM_API_BASE_URL}${botToken}/sendMessage`;
} else {
this.logger.warn({
message: `Unsupported platform: ${platform}`,
service: this.SERVICE_NAME,
method: 'sendWebhookNotification',
platform
});
return false;
}
try {