Add missing health column

This commit is contained in:
Owen
2026-04-26 21:25:14 -07:00
parent 7318c86cca
commit 7563b37cd0
2 changed files with 4 additions and 1 deletions

View File

@@ -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: []
};

View File

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