Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
refactor: remove hardcoded id
Marc Seitz867bdd09c0f2
diff --git a/pages/api/links/download/index.ts b/pages/api/links/download/index.tsindex afc9bc84..18454c52 100644--- a/pages/api/links/download/index.ts+++ b/pages/api/links/download/index.ts@@ -92,15 +92,6 @@ export default async function handle(data: { downloadedAt: new Date() },});- // TODO: team hardcode for special download- if (- view.document!.teamId === "clwt1qwt00000qz39aqra71w6" &&- view.document!.versions[0].type === "sheet"- ) {- const downloadUrl = view.document!.versions[0].file;- return res.status(200).json({ downloadUrl });- }-const downloadUrl = await getFile({type: view.document!.versions[0].storageType,data: