Update email_notification.ts

This commit is contained in:
Nicolas 2025-04-04 14:36:41 -04:00
parent e1e39f8836
commit 41e094032f

View File

@ -273,7 +273,7 @@ export async function sendNotificationWithCustomDays(
}, },
]); ]);
if (process.env.SLACK_ADMIN_WEBHOOK_URL && emails.length > 0) { if (process.env.SLACK_ADMIN_WEBHOOK_URL && emails.length > 0 && notificationType !== NotificationType.CONCURRENCY_LIMIT_REACHED) {
sendSlackWebhook( sendSlackWebhook(
`${getNotificationString(notificationType)}: Team ${team_id}, with email ${emails[0].email}.`, `${getNotificationString(notificationType)}: Team ${team_id}, with email ${emails[0].email}.`,
false, false,