Skip to content

Commit

Permalink
Merge pull request #3115 from paolomainardi/master
Browse files Browse the repository at this point in the history
Fix entity import
  • Loading branch information
kamilmysliwiec committed Oct 8, 2019
2 parents bdfd7ce + 94990a4 commit 99bd867
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sample/13-mongo-typeorm/src/app.module.ts
Expand Up @@ -2,14 +2,15 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { join } from 'path';
import { PhotoModule } from './photo/photo.module';
import { Photo } from './photo/photo.entity';

@Module({
imports: [
TypeOrmModule.forRoot({
type: 'mongodb',
host: 'localhost',
database: 'test',
entities: [join(__dirname, '**/**.entity{.ts,.js}')],
entities: [Photo],
synchronize: true,
}),
PhotoModule,
Expand Down

0 comments on commit 99bd867

Please sign in to comment.