MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toHealth

Function toHealth

packages/core/api/src/admin/reads.ts:206–207  ·  view source on GitHub ↗
(health: AdminConnection["lastHealth"])

Source from the content-addressed store, hash-verified

204 * construction, never a spread, for the same reason the row mappings are.
205 */
206const toHealth = (health: AdminConnection["lastHealth"]) =>
207 health === null ? null : { status: health.status, checkedAt: health.checkedAt };
208
209/**
210 * `AdminConnection` → the public `AdminUserConnection` shape.

Callers 1

toConnectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected