fix: channelType 联合类型修复

This commit is contained in:
aiyimickey 2026-07-01 19:11:38 +08:00
parent d5956b6cfd
commit befefb91ac
1 changed files with 1 additions and 1 deletions

View File

@ -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,