Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: change viewer query to teamId

Marc Seitzda3a6b07ba12
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/members/index.ts b/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/members/index.ts
index 72eaec20..54a2cf3e 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/members/index.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/members/index.ts
@@ -72,7 +72,7 @@ export default async function handle(
const viewers = await prisma.viewer.findMany({
where: {
- dataroomId: dataroomId,
+ teamId: teamId,
email: {
in: emails,
},