Stop execution in the event of an unwanted platform.
This commit is contained in:
1 parent
1d9f94c872
commit
e44cbf376f
1 file changed
+8
@@ -36,6 +36,14 @@ class NotificationService {
|
|||||||
text: `Monitor ${monitor.name} is ${status ? "up" : "down"}. URL: ${monitor.url}`
|
text: `Monitor ${monitor.name} is ${status ? "up" : "down"}. URL: ${monitor.url}`
|
||||||
};
|
};
|
||||||
url = `${TELEGRAM_API_BASE_URL}${botToken}/sendMessage`;
|
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 {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user