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>
This commit is contained in:
Joe Au-YeungandAlex van Andel authored and GitHub committed 2023-03-15 15:38:57 -07:00
1 parent 49d6dd9802
commit 91464fb5e5
1 file changed
+11
@@ -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,