Skip to content

Commit

Permalink
fix: nest dependencies lazy load energy-module
Browse files Browse the repository at this point in the history
  • Loading branch information
sanriodev committed Sep 15, 2024
1 parent fd69782 commit 91afb90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AppConfigModule } from './config/config.module';
import { MongoDatabaseProviderModule } from './config/database/mongo/provider/mongo-provider.module';
import { ModbusReaderModule } from './modules/modbus-reader/modbus-reader.module';
import { EnergyEntryModule } from './modules/energy-entry/energy-entry.module';

@Module({
imports: [AppConfigModule, MongoDatabaseProviderModule],
imports: [AppConfigModule, MongoDatabaseProviderModule, EnergyEntryModule],
controllers: [AppController],
providers: [AppService],
})
Expand Down
3 changes: 1 addition & 2 deletions src/modules/modbus-reader/modbus-reader.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Module } from '@nestjs/common';
import { ModbusReaderService } from './modbus-reader.service';
import { EnergyEntryModule } from '../energy-entry/energy-entry.module';

@Module({
imports: [EnergyEntryModule], // Add any imported modules here
imports: [], // Add any imported modules here
controllers: [], // Add any controllers here
providers: [ModbusReaderService],
exports: [ModbusReaderService], // Add any providers (services) here
Expand Down

0 comments on commit 91afb90

Please sign in to comment.