(db: DrizzleDb, id: string)
| 42 | or(isNull(organizations.workosUpdatedAt), lte(organizations.workosUpdatedAt, updatedAt)); |
| 43 | |
| 44 | const 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, |
no outgoing calls
no test coverage detected