82951cd04e
* chore: Move post booking stuff to separate service * refactor: improve ISP compliance in BookingEventHandlerService - Refactor updatePrivateLinkUsage to only accept hashedLink parameter instead of full payload - Remove shouldProcess function and inline isDryRun check for better clarity - Addresses feedback from PR #24025 Co-Authored-By: hariom@cal.com <hariombalhara@gmail.com> * define only what is used * Define hashed-link-service as well in api-v2 * fix: export HashedLinkService through platform-libraries - Add HashedLinkService to platform-libraries/private-links.ts - Update API V2 to import from platform library instead of direct path - Fixes MODULE_NOT_FOUND error in API V2 build Co-Authored-By: hariom@cal.com <hariombalhara@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
24 lines
729 B
TypeScript
24 lines
729 B
TypeScript
import { bindModuleToClassOnToken, createModule, type ModuleLoader } from "@calcom/features/di/di";
|
|
import { DI_TOKENS } from "@calcom/features/di/tokens";
|
|
import { moduleLoader as prismaModuleLoader } from "@calcom/prisma/prisma.module";
|
|
|
|
import { HashedLinkRepository } from "../lib/repository/HashedLinkRepository";
|
|
|
|
const thisModule = createModule();
|
|
const token = DI_TOKENS.HASHED_LINK_REPOSITORY;
|
|
const moduleToken = DI_TOKENS.HASHED_LINK_REPOSITORY_MODULE;
|
|
const loadModule = bindModuleToClassOnToken({
|
|
module: thisModule,
|
|
moduleToken,
|
|
token,
|
|
classs: HashedLinkRepository,
|
|
dep: prismaModuleLoader,
|
|
});
|
|
|
|
export const moduleLoader: ModuleLoader = {
|
|
token,
|
|
loadModule,
|
|
};
|
|
|
|
export type { HashedLinkRepository };
|