Skip to content

Commit 47cb39c

Browse files
committed
refactor: handleNewBooking #3
1 parent 5bbccad commit 47cb39c

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

packages/features/bookings/lib/handleNewBooking/createBooking.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ function buildNewBookingData(params: {
243243
if (reqBodyRecurringEventId) {
244244
newBookingData.recurringEventId = reqBodyRecurringEventId;
245245
}
246-
247246
if (originalRescheduledBooking) {
248247
newBookingData.metadata = {
249248
...(typeof originalRescheduledBooking.metadata === "object" && originalRescheduledBooking.metadata),

packages/features/bookings/lib/handleSeats/types.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ import type z from "zod";
44
import type { Workflow } from "@calcom/features/ee/workflows/lib/types";
55
import type { AppsStatus } from "@calcom/types/Calendar";
66

7-
import type { Booking, NewBookingEventType, OriginalRescheduledBooking } from "../handleNewBooking/types";
7+
import type {
8+
RescheduleReason,
9+
NoEmail,
10+
AdditionalNotes,
11+
ReqAppsStatus,
12+
SmsReminderNumber,
13+
EventTypeId,
14+
ReqBodyMetadata,
15+
} from "../handleNewBooking/types";
816

917
export type BookingSeat = Prisma.BookingSeatGetPayload<{ include: { booking: true; attendee: true } }> | null;
1018

0 commit comments

Comments
 (0)