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

Function narrowRole

apps/host-selfhost/src/admin/handlers.ts:48–49  ·  view source on GitHub ↗
(role: string | undefined)

Source from the content-addressed store, hash-verified

46 );
47
48const narrowRole = (role: string | undefined): InviteRole =>
49 role === "admin" ? "admin" : "member";
50
51// Drop the internal audit columns (createdBy/usedBy) for the wire shape.
52const toWire = (row: InviteCodeRow): typeof InviteCodeSchema.Type => ({

Callers 1

handlers.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected