From 8c8235c3c7c14e53437e28b5c94c69e27965e9d6 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Fri, 20 May 2022 21:21:11 +0200 Subject: [PATCH] fix: dont parse hooks before read --- pages/api/hooks/[id].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/hooks/[id].ts b/pages/api/hooks/[id].ts index 32a81e7b12..715c58cb73 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({