From 7563b37cd0e77da9aa83adacfd4c3a288af0862e Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 26 Apr 2026 21:25:14 -0700 Subject: [PATCH] Add missing health column --- server/routers/resource/listResources.ts | 2 ++ src/app/[orgId]/settings/resources/proxy/page.tsx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/server/routers/resource/listResources.ts b/server/routers/resource/listResources.ts index d0c30aaa2..36a424831 100644 --- a/server/routers/resource/listResources.ts +++ b/server/routers/resource/listResources.ts @@ -139,6 +139,7 @@ export type ResourceWithTargets = { niceId: string; headerAuthId: number | null; wildcard: boolean; + health: string | null; targets: Array<{ targetId: number; ip: string; @@ -460,6 +461,7 @@ export async function listResources( enabled: row.enabled, domainId: row.domainId, headerAuthId: row.headerAuthId, + health: row.health ?? null, targets: [], sites: [] }; diff --git a/src/app/[orgId]/settings/resources/proxy/page.tsx b/src/app/[orgId]/settings/resources/proxy/page.tsx index ed76aafb7..5d727d905 100644 --- a/src/app/[orgId]/settings/resources/proxy/page.tsx +++ b/src/app/[orgId]/settings/resources/proxy/page.tsx @@ -129,7 +129,8 @@ export default async function ProxyResourcesPage( healthStatus: target.healthStatus, siteName: target.siteName })), - sites: resource.sites ?? [] + sites: resource.sites ?? [], + health: (resource.health as ResourceRow["health"]) ?? undefined }; }); return (