1
1
import { DynamicModule , Module } from '@nestjs/common' ;
2
- import { Connection , ConnectionOptions , EntitySchema } from 'typeorm' ;
2
+ import { Connection , ConnectionOptions } from 'typeorm' ;
3
3
import { EntitiesMetadataStorage } from './entities-metadata.storage' ;
4
+ import { getCustomRepositoryEntity } from './helpers/get-custom-repository-entity' ;
4
5
import { EntityClassOrSchema } from './interfaces/entity-class-or-schema.type' ;
5
6
import {
6
7
TypeOrmModuleAsyncOptions ,
@@ -9,7 +10,6 @@ import {
9
10
import { TypeOrmCoreModule } from './typeorm-core.module' ;
10
11
import { DEFAULT_CONNECTION_NAME } from './typeorm.constants' ;
11
12
import { createTypeOrmProviders } from './typeorm.providers' ;
12
- import { getCustomRepositoryEntity } from "./typeorm.custom.repository" ;
13
13
14
14
@Module ( { } )
15
15
export class TypeOrmModule {
@@ -28,7 +28,7 @@ export class TypeOrmModule {
28
28
| string = DEFAULT_CONNECTION_NAME ,
29
29
) : DynamicModule {
30
30
const providers = createTypeOrmProviders ( entities , connection ) ;
31
- let customRepositoryEntities = getCustomRepositoryEntity ( entities ) ;
31
+ const customRepositoryEntities = getCustomRepositoryEntity ( entities ) ;
32
32
EntitiesMetadataStorage . addEntitiesByConnection ( connection , [
33
33
...entities ,
34
34
...customRepositoryEntities ,
0 commit comments