fix: dont parse hooks before read
This commit is contained in:
1 parent
b54db574e1
commit
8c8235c3c7
1 file changed
+1
-1
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user