From befefb91ac31555b90a28899891b79adef6e4a98 Mon Sep 17 00:00:00 2001 From: aiyimickey <39365912+aiyimickey@users.noreply.github.com> Date: Wed, 1 Jul 2026 19:11:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20channelType=20=E8=81=94=E5=90=88?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/monitor-worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/monitor-worker.ts b/src/lib/monitor-worker.ts index 7d8d3b3..0318617 100644 --- a/src/lib/monitor-worker.ts +++ b/src/lib/monitor-worker.ts @@ -146,7 +146,7 @@ export class MonitorWorker { id: ch.id as number, name: ch.name as string, webhookUrl: (raw.webhook_url as string) || '', - channelType: (raw.channel_type as string) || 'wechat', + channelType: ((raw.channel_type as string) || 'wechat') as 'wechat' | 'email', enabled: !!ch.enabled_num, levelCritical: !!ch.level_critical_num, levelWarning: !!ch.level_warning_num,