Scheduling infrastructure for absolutely everyone.
fix: destructuring error (#13312)
aman sagarde6f7dcfc0d3
diff --git a/apps/api/pages/api/webhooks/[id]/_patch.ts b/apps/api/pages/api/webhooks/[id]/_patch.tsindex 0a9b63f0de3..073a7f07042 100644--- a/apps/api/pages/api/webhooks/[id]/_patch.ts+++ b/apps/api/pages/api/webhooks/[id]/_patch.ts@@ -92,7 +92,7 @@ export async function patchHandler(req: NextApiRequest) {args.data.userId = bodyUserId;}- if (args.data.eventTriggers) {+ if (eventTriggers) {const eventTriggersSet = new Set(eventTriggers);args.data.eventTriggers = Array.from(eventTriggersSet);}diff --git a/apps/api/pages/api/webhooks/_post.ts b/apps/api/pages/api/webhooks/_post.tsindex e08d59d29dd..05e46d3a951 100644--- a/apps/api/pages/api/webhooks/_post.ts+++ b/apps/api/pages/api/webhooks/_post.ts@@ -92,7 +92,7 @@ async function postHandler(req: NextApiRequest) {args.data.userId = bodyUserId;}- if (args.data.eventTriggers) {+ if (eventTriggers) {const eventTriggersSet = new Set(eventTriggers);args.data.eventTriggers = Array.from(eventTriggersSet);}