api/src/modules/business-units/business-units.module.ts
import { forwardRef, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { BusinessUnitRepository } from 'modules/business-units/business-unit.repository';
import { BusinessUnitsController } from 'modules/business-units/business-units.controller';
import { BusinessUnitsService } from 'modules/business-units/business-units.service';
import { AdminRegionsModule } from 'modules/admin-regions/admin-regions.module';
import { MaterialsModule } from 'modules/materials/materials.module';
import { SuppliersModule } from 'modules/suppliers/suppliers.module';
import { BusinessUnit } from 'modules/business-units/business-unit.entity';
@Module({
imports: [
TypeOrmModule.forFeature([BusinessUnit]),
forwardRef(() => AdminRegionsModule),
forwardRef(() => SuppliersModule),
forwardRef(() => MaterialsModule),
],
controllers: [BusinessUnitsController],
providers: [BusinessUnitsService, BusinessUnitRepository],
exports: [BusinessUnitsService],
})
export class BusinessUnitsModule {}