fix: channelType 联合类型修复
This commit is contained in:
parent
d5956b6cfd
commit
befefb91ac
|
|
@ -146,7 +146,7 @@ export class MonitorWorker {
|
||||||
id: ch.id as number,
|
id: ch.id as number,
|
||||||
name: ch.name as string,
|
name: ch.name as string,
|
||||||
webhookUrl: (raw.webhook_url 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,
|
enabled: !!ch.enabled_num,
|
||||||
levelCritical: !!ch.level_critical_num,
|
levelCritical: !!ch.level_critical_num,
|
||||||
levelWarning: !!ch.level_warning_num,
|
levelWarning: !!ch.level_warning_num,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue