Skip to content

Commit

Permalink
fix: typo in mongo-db connection creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Mar 25, 2023
1 parent a4ef42d commit f828f26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/database/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import type {
DatabaseCreateContext,
} from './type';
import {
createCockroachDBDatabase, createMongoDBDatabase,
createCockroachDBDatabase,
createMongoDBDatabase,
createMsSQLDatabase,
createMySQLDatabase,
createOracleDatabase,
Expand Down
2 changes: 1 addition & 1 deletion src/database/driver/mongodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function createSimpleMongoDBConnection(

const client = new MongoClient(url);
await client.connect();
return client();
return client;
}

export async function createMongoDBDatabase(
Expand Down
3 changes: 2 additions & 1 deletion src/database/drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import type {
DatabaseDropContext,
} from './type';
import {
dropCockroachDBDatabase, dropMongoDBDatabase,
dropCockroachDBDatabase,
dropMongoDBDatabase,
dropMsSQLDatabase,
dropMySQLDatabase,
dropOracleDatabase,
Expand Down

0 comments on commit f828f26

Please sign in to comment.