Scheduling infrastructure for absolutely everyone.
Fix Zapier sample data and payload (#5241)
Carina Wollendorfer0746b1e3723a
diff --git a/packages/app-store/zapier/api/subscriptions/listBookings.ts b/packages/app-store/zapier/api/subscriptions/listBookings.tsindex 981e03d8baf..f6771b57e88 100644--- a/packages/app-store/zapier/api/subscriptions/listBookings.ts+++ b/packages/app-store/zapier/api/subscriptions/listBookings.ts@@ -33,7 +33,15 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {location: true,cancellationReason: true,status: true,- user: true,+ user: {+ select: {+ username: true,+ name: true,+ email: true,+ timeZone: true,+ locale: true,+ },+ },eventType: {select: {title: true,diff --git a/packages/features/webhooks/lib/sendPayload.tsx b/packages/features/webhooks/lib/sendPayload.tsxindex e396f36258b..8da4ac56bbd 100644--- a/packages/features/webhooks/lib/sendPayload.tsx+++ b/packages/features/webhooks/lib/sendPayload.tsx@@ -36,6 +36,14 @@ function getZapierPayload(data: CalendarEvent & EventTypeInfo & { status?: strinendTime: data.endTime,location: location,status: data.status,+ cancellationReason: data.cancellationReason,+ user: {+ username: data.organizer.username,+ name: data.organizer.name,+ email: data.organizer.email,+ timeZone: data.organizer.timeZone,+ locale: data.organizer.locale,+ },eventType: {title: data.eventTitle,description: data.eventDescription,