Skip to content

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

fix: `204` status with no body

Aashish-Upadhyay-1018c272a644937
diff --git a/pages/api/teams/[teamId]/remove-teammate.ts b/pages/api/teams/[teamId]/remove-teammate.ts
index 35c03eec..11606f1e 100644
--- a/pages/api/teams/[teamId]/remove-teammate.ts
+++ b/pages/api/teams/[teamId]/remove-teammate.ts
@@ -44,7 +44,7 @@ export default async function handle(
},
},
});
- return res.status(204).json("Member removed successfully!");
+ return res.status(204).end();
} catch (error) {
errorhandler(error, res);
}