MCPcopy Index your code
hub / github.com/simstudioai/sim / getOrganizationWorkspaceIds

Function getOrganizationWorkspaceIds

apps/sim/lib/data-drains/sources/helpers.ts:9–15  ·  view source on GitHub ↗
(organizationId: string)

Source from the content-addressed store, hash-verified

7 * sources whose underlying tables are workspace-scoped rather than org-scoped.
8 */
9export async function getOrganizationWorkspaceIds(organizationId: string): Promise<string[]> {
10 const rows = await db
11 .select({ id: workspace.id })
12 .from(workspace)
13 .where(eq(workspace.organizationId, organizationId))
14 return rows.map((row) => row.id)
15}

Callers 5

pagesFunction · 0.90
pagesFunction · 0.90
pagesFunction · 0.90
pagesFunction · 0.90
pagesFunction · 0.90

Calls 1

eqFunction · 0.50

Tested by

no test coverage detected