* init * -- * update dialog * reassignment * further changes * add unit test * fix * type fix?? * fix type?? * emails * workflows * reason recorder * refactor reassigned email * fix reassigned reason * fix type * improve dialog * add integration tests * - * remove unnecessary comments --1 * removed unnecessary comments * fix type? * address cubic * address feedback * -- * fix type? * address cubic * type-fix? * fix type * further fixes * fix location update * type fix * propagate error to top * fix mocking * fix reported bugs * fix * fix success page video URL * remove PII from logs * persist video URL * better audit trail * revert email function name change * fix test * fix flake * di * fixes * extract logic and other repo access from BookingRepository * fixes * (☞゚∀゚)☞ udit * integration test fixes * mroe fixes * extract to repo * extract to repo --2 * fix type * cubic * address feedback --1 * --2 * wip * addressed feedback * type fixes * type fixes * fix issues * feedback --1 * feedback --2 * BookingAccessService DI * fix * break down function into small functions * fixes --1 * fixes * typefix * addressing feedback * fix merge conflict lost change
24 lines
737 B
TypeScript
24 lines
737 B
TypeScript
import { BookingAccessService } from "@calcom/features/bookings/services/BookingAccessService";
|
|
import { moduleLoader as prismaModuleLoader } from "@calcom/features/di/modules/Prisma";
|
|
import { DI_TOKENS } from "@calcom/features/di/tokens";
|
|
|
|
import { bindModuleToClassOnToken, createModule, type ModuleLoader } from "../di";
|
|
|
|
export const bookingAccessServiceModule = createModule();
|
|
const token = DI_TOKENS.BOOKING_ACCESS_SERVICE;
|
|
const moduleToken = DI_TOKENS.BOOKING_ACCESS_SERVICE_MODULE;
|
|
const loadModule = bindModuleToClassOnToken({
|
|
module: bookingAccessServiceModule,
|
|
moduleToken,
|
|
token,
|
|
classs: BookingAccessService,
|
|
dep: prismaModuleLoader,
|
|
});
|
|
|
|
export const moduleLoader: ModuleLoader = {
|
|
token,
|
|
loadModule,
|
|
};
|
|
|
|
|