Scheduling infrastructure for absolutely everyone.
401 message fix
Syed Ali Shahbazdb6f5cad1512
diff --git a/pages/api/hooks/[id].ts b/pages/api/hooks/[id].tsindex 7debc7ac8df..8f81fc62d10 100644--- a/pages/api/hooks/[id].ts+++ b/pages/api/hooks/[id].ts@@ -111,9 +111,8 @@ export async function WebhookById(// Team should be available and the user should be a member of the teamif (!team?.members.some((membership) => membership.userId === userId)) {- throw new TRPCError({- code: "UNAUTHORIZED",- });+ res.status(401).json({ message: "Unauthorized" });+ return;}}await prisma.webhook