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

Function subjectsOf

apps/host-selfhost/src/subject-sightings.test.ts:44–52  ·  view source on GitHub ↗
(tenant: string)

Source from the content-addressed store, hash-verified

42});
43
44const subjectsOf = async (tenant: string): Promise<readonly string[]> => {
45 const rows = await withQueryContext(dbHandle!.db, {
46 tenant,
47 subject: null,
48 }).findMany("subject", {
49 orderBy: ["external_id", "asc"],
50 });
51 return rows.map((row) => String(row.external_id));
52};
53
54test("building a scoped executor records the acting principal", async () => {
55 const before = Date.now();

Callers 1

Calls 1

withQueryContextFunction · 0.90

Tested by

no test coverage detected