fix: 适配通知平台健康状态
This commit is contained in:
@@ -372,7 +372,7 @@ function toIntegrationStatuses(health: BackendHealth): IntegrationStatus[] {
|
||||
return [
|
||||
toIntegrationStatus('jenkins', 'Jenkins', health),
|
||||
toIntegrationStatus('gitea', 'Gitea', health),
|
||||
toIntegrationStatus('wecom', '通知平台', health),
|
||||
toIntegrationStatus('notification', '通知平台', health),
|
||||
toIntegrationStatus('llm', 'LLM Agent', health),
|
||||
]
|
||||
}
|
||||
@@ -382,7 +382,10 @@ function toIntegrationStatus(
|
||||
name: string,
|
||||
health: BackendHealth,
|
||||
): IntegrationStatus {
|
||||
const dependency = health.dependencies[key] ?? { status: 'unavailable' as const }
|
||||
const dependency =
|
||||
health.dependencies[key] ??
|
||||
(key === 'notification' ? health.dependencies.wecom : undefined) ??
|
||||
{ status: 'unavailable' as const }
|
||||
|
||||
return {
|
||||
key,
|
||||
|
||||
Reference in New Issue
Block a user