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

Function getWorkspaceUser

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

Source from the content-addressed store, hash-verified

4import { buildQueryWithCache } from '../cache/index.js';
5
6export async function getWorkspaceUser(workspaceId: string, userId: string) {
7 const info = await prisma.workspacesOnUsers.findFirst({
8 where: {
9 workspaceId,
10 userId,
11 },
12 });
13
14 return info;
15}
16
17export async function checkIsWorkspaceUser(
18 workspaceId: string,

Callers 3

workspacePermissionFunction · 0.85
checkIsWorkspaceUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected