import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SchedulesController } from './schedules.controller';
import { SchedulesService } from './schedules.service';
import { ScheduledTask } from '../../entities/scheduled-task.entity';
import { NatsService } from '../../services/nats.service';

@Module({
  imports: [TypeOrmModule.forFeature([ScheduledTask])],
  controllers: [SchedulesController],
  providers: [SchedulesService, NatsService],
  exports: [SchedulesService],
})
export class SchedulesModule {}
