Revert - create new bookings - writing team members to DB (#7756)
* Bring back creating team members * Clean up console.logs * Push into attendeesData --------- Co-authored-by: Alex van Andel <me@alexvanandel.com>pull/7769/head
parent
49d6dd9802
commit
91464fb5e5
|
@ -1439,6 +1439,17 @@ async function handler(
|
|||
};
|
||||
});
|
||||
|
||||
if (evt.team?.members) {
|
||||
attendeesData.push(
|
||||
...evt.team.members.map((member) => ({
|
||||
email: member.email,
|
||||
name: member.name,
|
||||
timeZone: member.timeZone,
|
||||
locale: member.language.locale,
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
||||
const newBookingData: Prisma.BookingCreateInput = {
|
||||
uid,
|
||||
responses: responses === null ? Prisma.JsonNull : responses,
|
||||
|
|
Loading…
Reference in New Issue