Skip to content

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

Merge branch 'main' into cursor/visitor-groups-access-1b01

Marc Seitza45ed08a65a3
diff --cc pages/api/teams/[teamId]/datarooms/[id]/links.ts
index 48522e4f,d90e0781..f38c8c4a
--- a/pages/api/teams/[teamId]/datarooms/[id]/links.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/links.ts
@@@ -62,11 -62,9 +62,12 @@@ export default async function handle
orderBy: {
viewedAt: "desc",
},
+ take: 1,
},
customFields: true,
+ visitorGroups: {
+ select: { visitorGroupId: true },
+ },
_count: {
select: { views: { where: { viewType: "DATAROOM_VIEW" } } },
},