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

Function toWire

apps/host-selfhost/src/admin/handlers.ts:52–61  ·  view source on GitHub ↗
(row: InviteCodeRow)

Source from the content-addressed store, hash-verified

50
51// Drop the internal audit columns (createdBy/usedBy) for the wire shape.
52const toWire = (row: InviteCodeRow): typeof InviteCodeSchema.Type => ({
53 id: row.id,
54 code: row.code,
55 role: row.role,
56 label: row.label,
57 createdAt: row.createdAt,
58 expiresAt: row.expiresAt,
59 usedByEmail: row.usedByEmail,
60 usedAt: row.usedAt,
61});
62
63export const AdminHandlers = HttpApiBuilder.group(AdminHttpApi, "admin", (handlers) =>
64 handlers

Callers 1

handlers.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected