From f828f26634616b7110c3ba075262ad18be82a873 Mon Sep 17 00:00:00 2001 From: tada5hi Date: Sat, 25 Mar 2023 18:20:39 +0100 Subject: [PATCH] fix: typo in mongo-db connection creation --- src/database/create.ts | 3 ++- src/database/driver/mongodb.ts | 2 +- src/database/drop.ts | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/database/create.ts b/src/database/create.ts index bb444277..13a5c5b5 100644 --- a/src/database/create.ts +++ b/src/database/create.ts @@ -3,7 +3,8 @@ import type { DatabaseCreateContext, } from './type'; import { - createCockroachDBDatabase, createMongoDBDatabase, + createCockroachDBDatabase, + createMongoDBDatabase, createMsSQLDatabase, createMySQLDatabase, createOracleDatabase, diff --git a/src/database/driver/mongodb.ts b/src/database/driver/mongodb.ts index 947f8dba..603336c9 100644 --- a/src/database/driver/mongodb.ts +++ b/src/database/driver/mongodb.ts @@ -26,7 +26,7 @@ export async function createSimpleMongoDBConnection( const client = new MongoClient(url); await client.connect(); - return client(); + return client; } export async function createMongoDBDatabase( diff --git a/src/database/drop.ts b/src/database/drop.ts index 9c15a0b3..3952b708 100644 --- a/src/database/drop.ts +++ b/src/database/drop.ts @@ -3,7 +3,8 @@ import type { DatabaseDropContext, } from './type'; import { - dropCockroachDBDatabase, dropMongoDBDatabase, + dropCockroachDBDatabase, + dropMongoDBDatabase, dropMsSQLDatabase, dropMySQLDatabase, dropOracleDatabase,