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

Function getSubject

packages/core/sdk/src/executor.ts:7136–7141  ·  view source on GitHub ↗
(externalId: string)

Source from the content-addressed store, hash-verified

7134 // `tenant` clause here: the tenant policy adds it to every read, the
7135 // same way `touchSubject` relies on it.
7136 const getSubject = (externalId: string): Effect.Effect<AdminSubject | null, StorageFailure> =>
7137 platformCore
7138 .findFirst("subject", {
7139 where: (b: AnyCb) => b("external_id", "=", externalId),
7140 })
7141 .pipe(Effect.map((row) => (row === null ? null : rowToAdminSubject(row))));
7142
7143 const listSubjectConnections = (
7144 externalId: string,

Callers 1

Calls 1

rowToAdminSubjectFunction · 0.85

Tested by

no test coverage detected