(workspaceId: string, userId: string)
| 4 | import { buildQueryWithCache } from '../cache/index.js'; |
| 5 | |
| 6 | export 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 | |
| 17 | export async function checkIsWorkspaceUser( |
| 18 | workspaceId: string, |
no outgoing calls
no test coverage detected