Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix
Marc Seitzc12f8bc25866
diff --git a/pages/api/teams/[teamId]/documents/index.ts b/pages/api/teams/[teamId]/documents/index.tsindex 440367b7..f83305df 100644--- a/pages/api/teams/[teamId]/documents/index.ts+++ b/pages/api/teams/[teamId]/documents/index.ts@@ -166,6 +166,9 @@ export default async function handle(try {const pageId = parsePageId(fileUrl, { uuid: false });// if the page isn't accessible then end the process here.+ if (!pageId) {+ throw new Error("Notion page not found");+ }await notion.getPage(pageId);} catch (error) {return res