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

Function asDirectory

packages/core/api/src/admin/reads.ts:222–229  ·  view source on GitHub ↗
(
  directory: AdminIdentityDirectory | AdminUserDirectory | undefined,
)

Source from the content-addressed store, hash-verified

220 * joins identities keeps working unchanged.
221 */
222const asDirectory = (
223 directory: AdminIdentityDirectory | AdminUserDirectory | undefined,
224): AdminUserDirectory =>
225 directory === undefined
226 ? {}
227 : typeof directory === "function"
228 ? { identities: directory }
229 : directory;
230
231/**
232 * Turn an `?email=` filter into the id to keep, or `null` for "nothing can

Callers 3

listUsersFunction · 0.85
listUsersWithConnectionsFunction · 0.85
getUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected