Skip to content

Commit faf50cb

Browse files
committed
fix: detect webhook on correct id
1 parent b841c28 commit faf50cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/api/webhooks/callback/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const POST = async (req: Request) => {
3232
);
3333

3434
const webhook = await prisma.webhook.findUnique({
35-
where: { id: webhookId },
35+
where: { pId: webhookId },
3636
});
3737

3838
if (!webhook) {

0 commit comments

Comments
 (0)