Skip to content

Commit

Permalink
fix: do not export MongoMikroORM symbol when we fail to infer drive…
Browse files Browse the repository at this point in the history
…r from config

Closes #180
  • Loading branch information
B4nan committed May 21, 2024
1 parent 5fb8e48 commit d298fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mikro-orm-core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class MikroOrmCoreModule implements OnApplicationShutdown {
contextName ? getEntityManagerToken(contextName) : EntityManager,
...(em && !contextName ? [em.constructor] : []),
...(knex && !contextName ? [knex.EntityManager] : []),
...(mongo && !contextName ? [mongo.EntityManager, mongo.MikroORM] : []),
...(mongo && !contextName ? [mongo.EntityManager] : []),
],
};
}
Expand Down Expand Up @@ -137,7 +137,7 @@ export class MikroOrmCoreModule implements OnApplicationShutdown {
contextName ? getEntityManagerToken(contextName) : EntityManager,
...(em && !contextName ? [em.constructor] : []),
...(knex && !contextName ? [knex.EntityManager] : []),
...(mongo && !contextName ? [mongo.EntityManager, mongo.MikroORM] : []),
...(mongo && !contextName ? [mongo.EntityManager] : []),
],
};
}
Expand Down

0 comments on commit d298fcb

Please sign in to comment.