Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: return count for all links
Marc Seitze131d12995ff
diff --git a/pages/api/teams/[teamId]/documents/[id]/overview.ts b/pages/api/teams/[teamId]/documents/[id]/overview.tsindex 674a45f8..8d7db446 100644--- a/pages/api/teams/[teamId]/documents/[id]/overview.ts+++ b/pages/api/teams/[teamId]/documents/[id]/overview.ts@@ -106,7 +106,7 @@ export default async function handle(// Get counts without fetching full records_count: {select: {- links: { where: { isArchived: false } },+ links: true,views: { where: { isArchived: false } },},},