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

Function getOrgWorkspaceIds

apps/sim/app/api/v1/audit-logs/query.ts:75–81  ·  view source on GitHub ↗
(organizationId: string)

Source from the content-addressed store, hash-verified

73 * Returns the IDs of all workspaces attached to the organization.
74 */
75export async function getOrgWorkspaceIds(organizationId: string): Promise<string[]> {
76 const rows = await db
77 .select({ id: workspace.id })
78 .from(workspace)
79 .where(eq(workspace.organizationId, organizationId))
80 return rows.map((row) => row.id)
81}
82
83export interface OrgScopeParams {
84 organizationId: string

Callers 4

route.tsFile · 0.90
query.test.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

eqFunction · 0.50

Tested by

no test coverage detected