Skip to content

Commit

Permalink
refactor: remove unused media module import
Browse files Browse the repository at this point in the history
  • Loading branch information
quytranDF committed Sep 8, 2024
1 parent 04aecf0 commit d53a16d
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
import 'reflect-metadata';

import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { DataSource } from 'typeorm';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { ApiConfigService } from '@shared/services/api-config.service';
import { SharedModule } from '@shared/services/shared.module';
import { MediaModule } from './modules/media/media.module';
import { UserModule } from '@modules/users/infra/restful-api/user.module';
import { MapModule } from '@modules/maps/infra/restful-api/map.module';

@Module({
imports: [
UserModule,
MapModule,
MediaModule,
ConfigModule.forRoot({
isGlobal: true,
envFilePath: '.env',
}),
TypeOrmModule.forRootAsync({
imports: [ConfigModule, SharedModule],
useFactory: (configService: ApiConfigService) =>
configService.postgresConfig,
inject: [ApiConfigService, ConfigService],
}),
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {
constructor(private dataSource: DataSource) {}
}
import 'reflect-metadata';

import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { DataSource } from 'typeorm';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { ApiConfigService } from '@shared/services/api-config.service';
import { SharedModule } from '@shared/services/shared.module';
// import { MediaModule } from './modules/media/media.module';
import { UserModule } from '@modules/users/infra/restful-api/user.module';
import { MapModule } from '@modules/maps/infra/restful-api/map.module';

@Module({
imports: [
UserModule,
MapModule,
// MediaModule,
ConfigModule.forRoot({
isGlobal: true,
envFilePath: '.env',
}),
TypeOrmModule.forRootAsync({
imports: [ConfigModule, SharedModule],
useFactory: (configService: ApiConfigService) =>
configService.postgresConfig,
inject: [ApiConfigService, ConfigService],
}),
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {
constructor(private dataSource: DataSource) {}
}

0 comments on commit d53a16d

Please sign in to comment.