Files
cal.diy/packages/features/di/modules/BusyTimes.ts
T
Benny Joo 96468c4083 refactor: move @calcom/lib/di folder to @calcom/features (#24199)
* mv di folder

* update imports

* fix

* fix

* fix test
2025-10-02 08:12:06 -03:00

10 lines
431 B
TypeScript

import type { IBusyTimesService } from "@calcom/lib/getBusyTimes";
import { BusyTimesService } from "@calcom/lib/getBusyTimes";
import { createModule } from "../di";
import { DI_TOKENS } from "../tokens";
export const busyTimesModule = createModule();
busyTimesModule.bind(DI_TOKENS.BUSY_TIMES_SERVICE).toClass(BusyTimesService, {
bookingRepo: DI_TOKENS.BOOKING_REPOSITORY,
} satisfies Record<keyof IBusyTimesService, symbol>);