Skip to content

Commit

Permalink
docs: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wrn14897 committed Feb 22, 2024
1 parent 5cf0922 commit 6a44b36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/tasks/checkAlerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ const fireChannelEvent = async ({
// users should be able to use '@' syntax to trigger alerts
const defaultTemplate = `@${alert.channel.type}-${alert.channel.webhookId}`;
const channels = extractChannels(defaultTemplate);
// TODO: should try to notify all channels instead of aborting on the first error
await Promise.all(
channels.map(channel =>
notifyChannel({
Expand Down

0 comments on commit 6a44b36

Please sign in to comment.