Skip to content

Commit

Permalink
fix: use correct type for MongoQueryRunner.databaseConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
imnotjames committed Oct 14, 2020
1 parent 4475d80 commit 1e8a8bb
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 1e8a8bb

Please sign in to comment.