* 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
23 lines
791 B
TypeScript
23 lines
791 B
TypeScript
import { AssignmentReasonRepository } from "@calcom/features/assignment-reason/repositories/AssignmentReasonRepository";
|
|
import { DI_TOKENS } from "@calcom/features/di/tokens";
|
|
import { moduleLoader as prismaModuleLoader } from "@calcom/features/di/modules/Prisma";
|
|
|
|
import { createModule, bindModuleToClassOnToken, type ModuleLoader } from "../di";
|
|
|
|
export const assignmentReasonRepositoryModule = createModule();
|
|
const token = DI_TOKENS.ASSIGNMENT_REASON_REPOSITORY;
|
|
const moduleToken = DI_TOKENS.ASSIGNMENT_REASON_REPOSITORY_MODULE;
|
|
const loadModule = bindModuleToClassOnToken({
|
|
module: assignmentReasonRepositoryModule,
|
|
moduleToken,
|
|
token,
|
|
classs: AssignmentReasonRepository,
|
|
dep: prismaModuleLoader,
|
|
});
|
|
|
|
export const moduleLoader: ModuleLoader = {
|
|
token,
|
|
loadModule,
|
|
};
|
|
|