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

Function readOrganization

apps/cloud/src/auth/user-store.ts:44–47  ·  view source on GitHub ↗
(db: DrizzleDb, id: string)

Source from the content-addressed store, hash-verified

42 or(isNull(organizations.workosUpdatedAt), lte(organizations.workosUpdatedAt, updatedAt));
43
44const readOrganization = async (db: DrizzleDb, id: string) => {
45 const rows = await db.select().from(organizations).where(eq(organizations.id, id));
46 return rows[0] ?? null;
47};
48
49/**
50 * Insert the organization row for `row.id` with a freshly minted URL slug,

Callers 2

insertOrganizationFunction · 0.70
getOrganizationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected