import { Module, forwardRef } from "@nestjs/common";
import { CronController } from "./cron.controller";
import { CronService } from "./cron.service";
import { CronSchedulerService } from "./cron.scheduler";
import { PrismaModule } from "../prisma/prisma.module";
import { AuthModule } from "../auth/auth.module";
import { WebSocketModule } from "../websocket/websocket.module";

@Module({
  imports: [PrismaModule, AuthModule, forwardRef(() => WebSocketModule)],
  controllers: [CronController],
  providers: [CronService, CronSchedulerService],
  exports: [CronService, CronSchedulerService],
})
export class CronModule {}
