Files
cal.diy/packages/features/bookings/di/BookingEventHandlerService.container.ts
T

16 lines
444 B
TypeScript

import { createContainer } from "@calcom/features/di/di";
import {
type BookingEventHandlerService,
moduleLoader as bookingEventHandlerServiceModule,
} from "./BookingEventHandlerService.module";
const container = createContainer();
export function getBookingEventHandlerService() {
bookingEventHandlerServiceModule.loadModule(container);
return container.get<BookingEventHandlerService>(bookingEventHandlerServiceModule.token);
}