hunk.code_window:   input: TGetScheduleInputSchema,
     organizationDetails: { currentOrgDomain: string | null; isValidOrgDomain: boolean }
   ) {
     const isDynamicBooking = input.usernameList && input.usernameList.length > 1;
     return isDynamicBooking ? getDynamicEventType(input) : getEventType(input, organizationDetails);
   }
   export async function getAvailableSlots({ input, ctx }: GetScheduleOptions) {
     const orgDetails = orgDomainConfig(ctx?.req?.headers.host ?? "");
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:   return isDynamicBooking
       ? getDynamicEventType(input, organizationDetails)
       : getEventType(input, organizationDetails);
  
hunk.file_path: packages/trpc/server/routers/viewer/slots/util.ts
hunk.type: replace
file: import { prisma } from "@calcom/prisma";
  
  import type { TUpdateInputSchema } from "./update.schema";
  
  type UpdateOptions = {
    ctx: Record<string, unknown>;
    input: TUpdateInputSchema;
  };
  
  export const updateHandler = async ({ input }: UpdateOptions) => {
    const data = {
      agreedLicenseAt: new Date(),
      licenseKey: input.licenseKey,
    };
  
    await prisma.deployment.upsert({ where: { id: 1 }, create: data, update: data });
  
    return;
  };
  