(
workspaceId: string,
options?: { includeArchived?: boolean }
)
| 66 | * @returns The workspace if found, null otherwise |
| 67 | */ |
| 68 | export 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 |
no test coverage detected