diff --git a/pages/api/hooks/index.ts b/pages/api/hooks/index.ts index 0a81da7ec5..12efc93a74 100644 --- a/pages/api/hooks/index.ts +++ b/pages/api/hooks/index.ts @@ -30,8 +30,8 @@ async function createOrlistAllWebhooks( * description: No webhooks were found */ const data = await prisma.webhook.findMany({ where: { userId } }); - const webhooks = data.map((webhook) => schemaWebhookReadPublic.parse(webhook)); - if (webhooks) res.status(200).json({ webhooks }); + // const webhooks = data.map((webhook) => schemaWebhookReadPublic.parse(webhook)); + if (data) res.status(200).json({ webhooks: data }); else (error: Error) => res.status(404).json({