fix: wrong Meeting Ended payload in zapier (#18202)
* fix: wrong Meeting Ended payload in zapier * fix
This commit is contained in:
1 parent
cec1c9ee46
commit
b652ae7714
3 files changed
+49
-5
No files matched your search
@@ -70,9 +70,32 @@ export async function addSubscription({
|
||||
},
|
||||
status: BookingStatus.ACCEPTED,
|
||||
},
|
||||
include: {
|
||||
eventType: {
|
||||
select: {
|
||||
bookingFields: true,
|
||||
},
|
||||
},
|
||||
attendees: {
|
||||
select: {
|
||||
name: true,
|
||||
email: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
for (const booking of bookings) {
|
||||
const bookingsWithCalEventResponses = bookings.map((booking) => {
|
||||
return {
|
||||
...booking,
|
||||
...getCalEventResponses({
|
||||
bookingFields: booking.eventType?.bookingFields ?? null,
|
||||
booking,
|
||||
}),
|
||||
};
|
||||
});
|
||||
|
||||
for (const booking of bookingsWithCalEventResponses) {
|
||||
scheduleTrigger({
|
||||
booking,
|
||||
subscriberUrl: createSubscription.subscriberUrl,
|
||||
|
||||
Reference in new issue
Block a user