Skip to content

Commit

Permalink
fix: use correct type for MongoQueryRunner.databaseConnection (#6906)
Browse files Browse the repository at this point in the history
fixes #6453
  • Loading branch information
imnotjames committed Oct 15, 2020
1 parent 84c18a9 commit da70b40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/driver/mongodb/MongoQueryRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
CollStats,
CommandCursor,
Cursor,
Db,
DeleteWriteOpResultObject,
FindAndModifyWriteOpResultObject,
FindOneAndReplaceOption,
Expand All @@ -29,6 +28,7 @@ import {
InsertOneWriteOpResult,
InsertWriteOpResult,
MapReduceOptions,
MongoClient,
MongoCountPreferences,
MongodbIndexOptions,
OrderedBulkOperation,
Expand Down Expand Up @@ -103,13 +103,13 @@ export class MongoQueryRunner implements QueryRunner {
/**
* Real database connection from a connection pool used to perform queries.
*/
databaseConnection: Db;
databaseConnection: MongoClient;

// -------------------------------------------------------------------------
// Constructor
// -------------------------------------------------------------------------

constructor(connection: Connection, databaseConnection: Db) {
constructor(connection: Connection, databaseConnection: MongoClient) {
this.connection = connection;
this.databaseConnection = databaseConnection;
this.broadcaster = new Broadcaster(this);
Expand Down

0 comments on commit da70b40

Please sign in to comment.