Skip to content

Commit

Permalink
style(provider): remove redundant spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshsalunke committed Jul 11, 2022
1 parent 92781d8 commit 5b666f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/typeorm.providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export function createTypeOrmProviders(
return (entities || []).map((entity) => ({
provide: getRepositoryToken(entity, dataSource),
useFactory: (dataSource: DataSource) => {
const enitityMetadata = dataSource.entityMetadatas.find( meta => meta.target === entity )
const enitityMetadata = dataSource.entityMetadatas.find((meta) => meta.target === entity)
const isTreeEntity = typeof enitityMetadata?.treeType !== 'undefined'
return isTreeEntity
? dataSource.getTreeRepository( entity )
? dataSource.getTreeRepository(entity)
: dataSource.options.type === 'mongodb'
? dataSource.getMongoRepository(entity)
: dataSource.getRepository(entity);
Expand Down

0 comments on commit 5b666f2

Please sign in to comment.