refactor discord
This commit is contained in:
1 parent
2cd2a6d917
commit
e0a75c78db
2 files changed
+121
No files matched your search
@@ -108,6 +108,15 @@ export class NotificationsService implements INotificationsService {
|
||||
return await this.pagerDutyProvider.sendMessage(notification, notificationMessage);
|
||||
}
|
||||
|
||||
if (notification.type === "discord" && this.discordProvider.sendMessage && notificationMessage) {
|
||||
this.logger.info({
|
||||
message: "[NEW] Using sendMessage for discord",
|
||||
service: SERVICE_NAME,
|
||||
method: "send",
|
||||
});
|
||||
return await this.discordProvider.sendMessage(notification, notificationMessage);
|
||||
}
|
||||
|
||||
// Fallback to existing sendAlert for all providers
|
||||
switch (notification.type) {
|
||||
case "email":
|
||||
|
||||
Reference in new issue
Block a user