diff --git a/packages/api/src/tasks/checkAlerts.ts b/packages/api/src/tasks/checkAlerts.ts index f898b38bc..67ef762fc 100644 --- a/packages/api/src/tasks/checkAlerts.ts +++ b/packages/api/src/tasks/checkAlerts.ts @@ -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,