Skip to content

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

fix: add visitorGroups include to dataroom group links API

Cursor Agentecfd25a117df
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/links.ts b/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/links.ts
index 0e8f5260..cd37f3ab 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/links.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/links.ts
@@ -70,6 +70,9 @@ export default async function handle(
take: 1,
},
customFields: true,
+ visitorGroups: {
+ select: { visitorGroupId: true },
+ },
_count: {
select: { views: { where: { viewType: "DATAROOM_VIEW" } } },
},