import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ChannelsController } from './channels.controller'; import { Channel } from '../entities/channel.entity'; import { ChannelsService } from './channels.service'; @Module({ imports: [TypeOrmModule.forFeature([Channel])], controllers: [ChannelsController], providers: [ChannelsService], exports: [ChannelsService], }) export class ChannelsModule {}