podcast.module.ts 691 B

123456789101112131415161718
  1. import { Module } from '@nestjs/common';
  2. import { TypeOrmModule } from '@nestjs/typeorm';
  3. import { PodcastEpisode } from './entities/podcast-episode.entity';
  4. import { PodcastService } from './podcast.service';
  5. import { PodcastController } from './podcast.controller';
  6. import { KnowledgeGroup } from '../knowledge-group/knowledge-group.entity';
  7. import { ChatModule } from '../chat/chat.module';
  8. @Module({
  9. imports: [
  10. TypeOrmModule.forFeature([PodcastEpisode, KnowledgeGroup]),
  11. ChatModule, // Import ChatModule to use ChatService
  12. ],
  13. controllers: [PodcastController],
  14. providers: [PodcastService],
  15. exports: [PodcastService],
  16. })
  17. export class PodcastModule { }