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

Function fetchWorkspaceMembers

apps/sim/hooks/queries/workspace.ts:258–267  ·  view source on GitHub ↗
(
  workspaceId: string,
  signal?: AbortSignal
)

Source from the content-addressed store, hash-verified

256}
257
258async function fetchWorkspaceMembers(
259 workspaceId: string,
260 signal?: AbortSignal
261): Promise<WorkspaceMember[]> {
262 const data = await requestJson(getWorkspaceMembersContract, {
263 params: { id: workspaceId },
264 signal,
265 })
266 return data.members
267}
268
269/**
270 * Fetches lightweight member profiles (id, name, image) for a workspace.

Callers 1

useWorkspaceMembersQueryFunction · 0.85

Calls 1

requestJsonFunction · 0.90

Tested by

no test coverage detected