Skip to content

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

fix: error from incorrect api return

Marc Seitz86479aaab6f8
diff --git a/pages/api/links/[id]/index.ts b/pages/api/links/[id]/index.ts
index 8827bf7d..c8cc7a06 100644
--- a/pages/api/links/[id]/index.ts
+++ b/pages/api/links/[id]/index.ts
@@ -26,7 +26,7 @@ export default async function handle(
},
});
- res.status(200).json(link);
+ return res.status(200).json(link);
} catch (error) {
return res.status(500).json({
message: "Internal Server Error",