Skip to content

Commit

Permalink
refactor: handleNewBooking #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Udit-takkar committed Jul 10, 2024
1 parent 6e00356 commit 19aa4c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ function buildNewBookingData(params: {
if (reqBodyRecurringEventId) {
newBookingData.recurringEventId = reqBodyRecurringEventId;
}

if (originalRescheduledBooking) {
newBookingData.metadata = {
...(typeof originalRescheduledBooking.metadata === "object" && originalRescheduledBooking.metadata),
Expand Down
10 changes: 9 additions & 1 deletion packages/features/bookings/lib/handleSeats/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ import type z from "zod";
import type { Workflow } from "@calcom/features/ee/workflows/lib/types";
import type { AppsStatus } from "@calcom/types/Calendar";

import type { Booking, NewBookingEventType, OriginalRescheduledBooking } from "../handleNewBooking/types";
import type {
RescheduleReason,
NoEmail,
AdditionalNotes,
ReqAppsStatus,
SmsReminderNumber,
EventTypeId,
ReqBodyMetadata,
} from "../handleNewBooking/types";

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

Expand Down

0 comments on commit 19aa4c8

Please sign in to comment.