Scheduling infrastructure for absolutely everyone.
When no location, defaults to cal video (#3517)
Om Rayb3b82fa1cff5
diff --git a/packages/app-store/exchange2013calendar/lib/CalendarService.ts b/packages/app-store/exchange2013calendar/lib/CalendarService.tsindex 35adbf5558a..896c494de93 100644--- a/packages/app-store/exchange2013calendar/lib/CalendarService.ts+++ b/packages/app-store/exchange2013calendar/lib/CalendarService.ts@@ -90,6 +90,7 @@ export default class ExchangeCalendarService implements Calendar {}}+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyasync updateEvent(uid: string, event: CalendarEvent): Promise<any> {try {const appointment = await Appointment.Bind(diff --git a/packages/trpc/server/routers/viewer/bookings.tsx b/packages/trpc/server/routers/viewer/bookings.tsxindex 65ba0de8702..17dcc93d5f5 100644--- a/packages/trpc/server/routers/viewer/bookings.tsx+++ b/packages/trpc/server/routers/viewer/bookings.tsx@@ -1,6 +1,7 @@import { SchedulingType } from "@prisma/client";import { z } from "zod";+import { LocationType } from "@calcom/app-store/locations";import EventManager from "@calcom/core/EventManager";import dayjs from "@calcom/dayjs";import { sendLocationChangeEmails } from "@calcom/emails";@@ -65,7 +66,7 @@ export const bookingsRouter = createProtectedRouter()}).mutation("editLocation", {input: commonBookingSchema.extend({- newLocation: z.string(),+ newLocation: z.string().transform((val) => val || LocationType.Daily),}),async resolve({ ctx, input }) {const { bookingId, newLocation: location } = input;