Skip to content

Instantly share code, notes, and snippets.

@Mr-Malomz
Created August 26, 2020 23:00
Show Gist options
  • Save Mr-Malomz/874f6e069ceaabca2f0626c2c31bf39a to your computer and use it in GitHub Desktop.
Save Mr-Malomz/874f6e069ceaabca2f0626c2c31bf39a to your computer and use it in GitHub Desktop.
Updated ap.module.ts
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AuthModule } from './auth/auth.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { typeOrmConfig } from './config/typeorm.config';
@Module({
// Updated imports to finailize configuration
imports: [TypeOrmModule.forRoot(typeOrmConfig), AuthModule],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment