fix: dont parse hooks before read

This commit is contained in:
Agusti Fernandez Pardo committed 2022-05-20 21:21:11 +02:00
1 parent b54db574e1
commit 8c8235c3c7
1 file changed
+1 -1
+1 -1
View File
@@ -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({