( workspaceId: string, userId: string )
| 15 | } |
| 16 | |
| 17 | export 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 | |
| 30 | export async function getWorkspace(workspaceId: string) { |
| 31 | return prisma.workspace.findUnique({ |
nothing calls this directly
no test coverage detected