Move handleNotificationWhenNoSlots.ts and its test file from packages/trpc/server/routers/viewer/slots/ to packages/features/slots/ to resolve circular dependency issue where packages/features imports from packages/trpc. This file is not TRPC-specific and belongs in the features package. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
13 lines
643 B
TypeScript
13 lines
643 B
TypeScript
import type { INoSlotsNotificationService } from "@calcom/features/slots/handleNotificationWhenNoSlots";
|
|
import { NoSlotsNotificationService } from "@calcom/features/slots/handleNotificationWhenNoSlots";
|
|
|
|
import { createModule } from "../di";
|
|
import { DI_TOKENS } from "../tokens";
|
|
|
|
export const noSlotsNotificationModule = createModule();
|
|
noSlotsNotificationModule.bind(DI_TOKENS.NO_SLOTS_NOTIFICATION_SERVICE).toClass(NoSlotsNotificationService, {
|
|
teamRepo: DI_TOKENS.TEAM_REPOSITORY,
|
|
membershipRepo: DI_TOKENS.MEMBERSHIP_REPOSITORY,
|
|
redisClient: DI_TOKENS.REDIS_CLIENT,
|
|
} satisfies Record<keyof INoSlotsNotificationService, symbol>);
|