MCPcopy
hub / github.com/msgbyte/tianji / checkIsWorkspaceUser

Function checkIsWorkspaceUser

src/server/model/workspace.ts:17–28  ·  view source on GitHub ↗
(
  workspaceId: string,
  userId: string
)

Source from the content-addressed store, hash-verified

15}
16
17export async function checkIsWorkspaceUser(
18 workspaceId: string,
19 userId: string
20) {
21 const info = await getWorkspaceUser(workspaceId, userId);
22
23 if (info) {
24 return true;
25 } else {
26 return false;
27 }
28}
29
30export async function getWorkspace(workspaceId: string) {
31 return prisma.workspace.findUnique({

Callers

nothing calls this directly

Calls 1

getWorkspaceUserFunction · 0.85

Tested by

no test coverage detected