add test notificaiton button and methods

This commit is contained in:
Alex Holliday committed 2025-06-10 12:07:31 +08:00
1 parent 1ed317d0cb
commit e6493df881
8 files changed
+135 -90

No files matched your search

+11
View File
@@ -95,6 +95,17 @@ class NotificationService {
return MESSAGE_FORMATTERS[platform](messageText, chatId);
}
sendTestWebhookNotification = async (notification) => {
const config = notification.config;
const response = await this.networkService.requestWebhook(
config.platform,
config.webhookUrl,
"This is a test notification"
);
return response.status;
};
/**
* Sends a webhook notification to a specified platform.
*