Skip to content

Commit

Permalink
style: remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
wrn14897 committed Feb 27, 2024
1 parent 4515dc4 commit b2bc9de
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/api/src/tasks/checkAlerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,6 @@ type AlertMessageTemplateDefaultView = {
};
value: number;
};
const extractChannels = (template: string) => {
const matches = template.match(/@([a-zA-Z0-9_-]+)/g);
return matches
? matches.map(match => {
// @webhook-1234_5678
const [channel, id] = match.substring(1).split('-');
return {
channel,
id,
};
})
: [];
};
const notifyChannel = async ({
channel,
id,
Expand Down

0 comments on commit b2bc9de

Please sign in to comment.