MCPcopy
hub / github.com/simstudioai/sim / getWorkspaceById

Function getWorkspaceById

apps/sim/lib/workspaces/permissions/utils.ts:68–74  ·  view source on GitHub ↗
(
  workspaceId: string,
  options?: { includeArchived?: boolean }
)

Source from the content-addressed store, hash-verified

66 * @returns The workspace if found, null otherwise
67 */
68export async function getWorkspaceById(
69 workspaceId: string,
70 options?: { includeArchived?: boolean }
71): Promise<WorkspaceBasic | null> {
72 const exists = await workspaceExists(workspaceId, options)
73 return exists ? { id: workspaceId } : null
74}
75
76/**
77 * Get a workspace with owner info by ID

Callers 7

utils.test.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
executeJobInlineFunction · 0.90

Calls 1

workspaceExistsFunction · 0.85

Tested by

no test coverage detected