@ -9,7 +9,7 @@ export default class Discord implements IWebhookNotificationAdapter {
public async sendMessage(content: string, payload: any): Promise<any> {
for (const { webhook_url } of payload?.channels) {
try {
await axios.post(webhook_url, {
return await axios.post(webhook_url, {
content,
});
} catch (e) {
@ -9,7 +9,7 @@ export default class Mattermost implements IWebhookNotificationAdapter {
public async sendMessage(text: string, payload: any): Promise<any> {
text,
@ -9,7 +9,7 @@ export default class Slack implements IWebhookNotificationAdapter {
@ -9,7 +9,7 @@ export default class Teams implements IWebhookNotificationAdapter {
public async sendMessage(Text: string, payload: any): Promise<any> {
Text,
@ -9,7 +9,7 @@ export default class Discord {
): Promise<any> {
for (const { webhook_url } of webhooks) {
@ -9,7 +9,7 @@ export default class Mattermost {
@ -9,7 +9,7 @@ export default class Slack {