-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove unused media module import
- Loading branch information
1 parent
04aecf0
commit d53a16d
Showing
1 changed file
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) {} | ||
} |