fix return (#21088)

This commit is contained in:
sean-brydon
2025-05-02 20:06:58 +01:00
committed by GitHub
parent 42a6903057
commit ef1598faeb
@@ -192,14 +192,18 @@ const buildDryRunBooking = ({
allHostUsers: { id: number }[];
isManagedEventType: boolean;
}) => {
const sanitizedOrganizerUser = {
...organizerUser,
credentials: undefined,
};
const booking = {
id: -101,
uid: "DRY_RUN_UID",
iCalUID: "DRY_RUN_ICAL_UID",
status: BookingStatus.ACCEPTED,
eventTypeId: eventTypeId,
user: organizerUser,
userId: organizerUser.id,
user: sanitizedOrganizerUser,
userId: sanitizedOrganizerUser.id,
title: eventName,
startTime: new Date(startTime),
endTime: new Date(endTime),
@@ -1383,6 +1387,7 @@ async function handler(
allHostUsers: users,
isManagedEventType,
});
booking = dryRunBooking;
troubleshooterData = {
...troubleshooterData,