Skip to content

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

fix: feature flag for incoming webhooks

Marc Seitz2da9bcdc1141
diff --git a/pages/api/teams/[teamId]/incoming-webhooks/index.ts b/pages/api/teams/[teamId]/incoming-webhooks/index.ts
index 85085ac4..44d231a1 100644
--- a/pages/api/teams/[teamId]/incoming-webhooks/index.ts
+++ b/pages/api/teams/[teamId]/incoming-webhooks/index.ts
@@ -16,7 +16,7 @@ export default async function handle(
// Check feature flag
const features = await getFeatureFlags({ teamId });
- if (!features.webhooks) {
+ if (!features.incomingWebhooks) {
return res
.status(403)
.json({ error: "This feature is not available for your team" });