Scheduling infrastructure for absolutely everyone.
fix: dont parse hooks before read
Agusti Fernandez Pardo8c8235c3c7c1
diff --git a/pages/api/hooks/[id].ts b/pages/api/hooks/[id].tsindex 32a81e7b12a..715c58cb73e 100644--- a/pages/api/hooks/[id].ts+++ b/pages/api/hooks/[id].ts@@ -97,7 +97,7 @@ export async function WebhookById(}await prisma.webhook.update({ where: { id: safeQuery.data.id }, data: safeBody.data })- .then((data) => schemaWebhookReadPublic.parse(data))+ // .then((data) => schemaWebhookReadPublic.parse(data)).then((webhook) => res.status(200).json({ webhook })).catch((error: Error) =>res.status(404).json({