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

Function organizationAcceptsName

apps/cloud/src/auth/user-store.ts:41–42  ·  view source on GitHub ↗
(updatedAt: Date)

Source from the content-addressed store, hash-verified

39 * rename can never revert the rename after it landed.
40 */
41export const organizationAcceptsName = (updatedAt: Date) =>
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));

Callers 2

makeWritesFunction · 0.90
upsertOrganizationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected