import { Module } from '@nestjs/common';
import { BullModule } from '@nestjs/bullmq';
import { EmailController } from './email.controller';
import { EmailService } from './email.service';
import { EmailSendProcessor } from './email-send.processor';
import { EmailSchedulerService } from './email-scheduler.service';

@Module({
  imports: [
    BullModule.registerQueue({ name: 'email-send' }),
  ],
  controllers: [EmailController],
  providers: [EmailService, EmailSendProcessor, EmailSchedulerService],
  exports: [EmailService],
})
export class EmailModule {}
