mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-17 06:24:32 +00:00
Add missing health column
This commit is contained in:
@@ -139,6 +139,7 @@ export type ResourceWithTargets = {
|
|||||||
niceId: string;
|
niceId: string;
|
||||||
headerAuthId: number | null;
|
headerAuthId: number | null;
|
||||||
wildcard: boolean;
|
wildcard: boolean;
|
||||||
|
health: string | null;
|
||||||
targets: Array<{
|
targets: Array<{
|
||||||
targetId: number;
|
targetId: number;
|
||||||
ip: string;
|
ip: string;
|
||||||
@@ -460,6 +461,7 @@ export async function listResources(
|
|||||||
enabled: row.enabled,
|
enabled: row.enabled,
|
||||||
domainId: row.domainId,
|
domainId: row.domainId,
|
||||||
headerAuthId: row.headerAuthId,
|
headerAuthId: row.headerAuthId,
|
||||||
|
health: row.health ?? null,
|
||||||
targets: [],
|
targets: [],
|
||||||
sites: []
|
sites: []
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -129,7 +129,8 @@ export default async function ProxyResourcesPage(
|
|||||||
healthStatus: target.healthStatus,
|
healthStatus: target.healthStatus,
|
||||||
siteName: target.siteName
|
siteName: target.siteName
|
||||||
})),
|
})),
|
||||||
sites: resource.sites ?? []
|
sites: resource.sites ?? [],
|
||||||
|
health: (resource.health as ResourceRow["health"]) ?? undefined
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user