Scheduling infrastructure for absolutely everyone.
fix: hooks dont parse before read
Agusti Fernandez Pardof1175a06f64c
diff --git a/pages/api/hooks/index.ts b/pages/api/hooks/index.tsindex 0a81da7ec5a..12efc93a743 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({