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

Function getOrganization

apps/cloud/src/auth/user-store.ts:22–25  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

20
21export const makeUserStore = (db: DrizzleDb) => {
22 const getOrganization = async (id: string) => {
23 const rows = await db.select().from(organizations).where(eq(organizations.id, id));
24 return rows[0] ?? null;
25 };
26
27 const slugTaken = async (slug: string) => {
28 const rows = await db

Callers 1

upsertOrganizationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected