Vizzuality/landgriffon

View on GitHub
api/src/modules/sourcing-locations/sourcing-locations.module.ts

Summary

Maintainability
A
40 mins
Test Coverage
A
100%
import { forwardRef, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SourcingLocation } from 'modules/sourcing-locations/sourcing-location.entity';
import { SourcingLocationsController } from 'modules/sourcing-locations/sourcing-locations.controller';
import { SourcingLocationsService } from 'modules/sourcing-locations/sourcing-locations.service';
import { SourcingLocationsMaterialsService } from 'modules/sourcing-locations/sourcing-locations-materials.service';
import { AdminRegionsModule } from 'modules/admin-regions/admin-regions.module';
import { BusinessUnitsModule } from 'modules/business-units/business-units.module';
import { SuppliersModule } from 'modules/suppliers/suppliers.module';
import { MaterialsModule } from 'modules/materials/materials.module';
import { SourcingLocationRepository } from 'modules/sourcing-locations/sourcing-location.repository';

@Module({
  imports: [
    TypeOrmModule.forFeature([SourcingLocation]),
    forwardRef(() => AdminRegionsModule),
    forwardRef(() => BusinessUnitsModule),
    forwardRef(() => SuppliersModule),
    forwardRef(() => MaterialsModule),
  ],
  controllers: [SourcingLocationsController],
  providers: [
    SourcingLocationsService,
    SourcingLocationsMaterialsService,
    SourcingLocationRepository,
  ],
  exports: [SourcingLocationsService, SourcingLocationRepository],
})
export class SourcingLocationsModule {}