Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: detect webhook on correct id
Marc Seitzfaf50cb6d2e1
diff --git a/app/api/webhooks/callback/route.ts b/app/api/webhooks/callback/route.tsindex 6d1c77da..df6bbf34 100644--- a/app/api/webhooks/callback/route.ts+++ b/app/api/webhooks/callback/route.ts@@ -32,7 +32,7 @@ export const POST = async (req: Request) => {);const webhook = await prisma.webhook.findUnique({- where: { id: webhookId },+ where: { pId: webhookId },});if (!webhook) {