Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: errors on branding page
Marc Seitz773ef454e137
diff --git a/pages/api/teams/[teamId]/branding.ts b/pages/api/teams/[teamId]/branding.tsindex 32fe1909..d379cd3f 100644--- a/pages/api/teams/[teamId]/branding.ts+++ b/pages/api/teams/[teamId]/branding.ts@@ -49,10 +49,10 @@ export default async function handle(});if (!brand) {- res.status(200).json(null);+ return res.status(200).json(null);}- res.status(200).json(brand);+ return res.status(200).json(brand);} else if (req.method === "POST") {// POST /api/teams/:teamId/brandingconst { logo, brandColor, accentColor } = req.body as {@@ -113,7 +113,7 @@ export default async function handle(},});- res.status(204).end();+ return res.status(204).end();} else {// We only allow GET and DELETE requestsres.setHeader("Allow", ["GET", "POST", "PUT", "DELETE"]);