Skip to content

Commit e5f8d4a

Browse files
authored
feat: support no show webhook for instant meetings (calcom#21251)
* feat: support no show webhook for instant meetings * fix: type error
1 parent 19c7232 commit e5f8d4a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

packages/trpc/server/routers/loggedInViewer/connectAndJoin.handler.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { sendScheduledEmailsAndSMS } from "@calcom/emails";
22
import { getCalEventResponses } from "@calcom/features/bookings/lib/getCalEventResponses";
3+
import { scheduleNoShowTriggers } from "@calcom/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers";
34
import { isPrismaObjOrUndefined } from "@calcom/lib/isPrismaObj";
45
import { getTranslation } from "@calcom/lib/server/i18n";
56
import { getTimeFormatStringFromUserTimeFormat } from "@calcom/lib/timeFormat";
@@ -233,5 +234,18 @@ export const Handler = async ({ ctx, input }: Options) => {
233234
eventTypeMetadata
234235
);
235236

237+
await scheduleNoShowTriggers({
238+
booking: {
239+
startTime: updatedBooking.startTime,
240+
id: updatedBooking.id,
241+
location: updatedBooking.location,
242+
},
243+
triggerForUser: !eventType?.teamId || (eventType?.teamId && eventType?.parentId),
244+
organizerUser: { id: user.id },
245+
eventTypeId: eventType?.id ?? null,
246+
teamId: eventType?.teamId,
247+
orgId: user.organizationId,
248+
});
249+
236250
return { isBookingAlreadyAcceptedBySomeoneElse, meetingUrl: locationVideoCallUrl };
237251
};

0 commit comments

Comments
 (0)