import { Module } from '@nestjs/common';
import { ScheduleModule } from '@nestjs/schedule';
import { WalletModule } from '../wallet/wallet.module';
import { EmailModule } from '../email/email.module';
import { CronService } from './cron.service';
import { EmailLogsController } from './email-logs.controller';

@Module({
  imports: [
    ScheduleModule.forRoot(), // Ensure schedule is initialized
    WalletModule, // For WalletService
    EmailModule, // For EmailService
  ],
  controllers: [EmailLogsController],
  providers: [CronService],
})
export class CronModule {}
