import type { Session } from "next-auth"; import { handleMarkAttendeesAndHostNoShow } from "@calcom/features/handleMarkNoShow"; import type { TrpcSessionUser } from "@calcom/trpc/server/types"; import type { TNoShowInputSchema } from "./markNoShow.schema"; type NoShowOptions = { input: TNoShowInputSchema; ctx: { user: NonNullable; session: Session; }; }; export const markNoShow = async ({ ctx, input }: NoShowOptions) => { const { bookingUid, attendees, noShowHost } = input; const impersonatedByUserUuid = ctx.session.user?.impersonatedBy?.uuid ?? null; return handleMarkAttendeesAndHostNoShow({ bookingUid, attendees, noShowHost, userId: ctx.user.id, userUuid: ctx.user.uuid, locale: ctx.user.locale, actionSource: "WEBAPP", impersonatedByUserUuid, }); };