Scheduling infrastructure for absolutely everyone.
fix: Fixes Jelly type mismatch and passes conference credential id when confirm bookings (#14209)
Joe Au-Yeungda7c5ec407e0
diff --git a/packages/app-store/jelly/config.json b/packages/app-store/jelly/config.jsonindex 7893b9cf662..68433dcbf61 100644--- a/packages/app-store/jelly/config.json+++ b/packages/app-store/jelly/config.json@@ -11,7 +11,7 @@"email": "[email protected]","appData": {"location": {- "type": "integrations:{SLUG}_video",+ "type": "integrations:{SLUG}_conferencing","label": "{TITLE}","linkType": "dynamic"}diff --git a/packages/trpc/server/routers/viewer/bookings/confirm.handler.ts b/packages/trpc/server/routers/viewer/bookings/confirm.handler.tsindex 5d632951c4f..4e35c5f1571 100644--- a/packages/trpc/server/routers/viewer/bookings/confirm.handler.ts+++ b/packages/trpc/server/routers/viewer/bookings/confirm.handler.ts@@ -1,6 +1,8 @@import { Prisma } from "@prisma/client";import appStore from "@calcom/app-store";+import { getLocationValueForDB } from "@calcom/app-store/locations";+import type { LocationObject } from "@calcom/app-store/locations";import { sendDeclinedEmails } from "@calcom/emails";import { getCalEventResponses } from "@calcom/features/bookings/lib/getCalEventResponses";import { handleConfirmation } from "@calcom/features/bookings/lib/handleConfirmation";@@ -67,6 +69,7 @@ export const confirmHandler = async ({ ctx, input }: ConfirmOptions) => {bookingFields: true,disableGuests: true,metadata: true,+ locations: true,team: {select: {parentId: true,@@ -248,6 +251,11 @@ export const confirmHandler = async ({ ctx, input }: ConfirmOptions) => {...user,credentials,};+ const conferenceCredentialId = getLocationValueForDB(+ booking.location ?? "",+ (booking.eventType?.locations as LocationObject[]) || []+ );+ evt.conferenceCredentialId = conferenceCredentialId.conferenceCredentialId;await handleConfirmation({user: userWithCredentials,evt,