add test notificaiton button and methods
This commit is contained in:
1 parent
1ed317d0cb
commit
e6493df881
8 files changed
+135
-90
No files matched your search
@@ -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.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user