removed questdb
This commit is contained in:
parent
8165994fde
commit
d63025de90
2 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { MongoDBClient } from './client';
|
||||
import type { MongoDBClientConfig, ConnectionEvents } from './types';
|
||||
import type { ConnectionEvents, MongoDBClientConfig } from './types';
|
||||
|
||||
/**
|
||||
* Factory function to create a MongoDB client instance
|
||||
|
|
@ -17,6 +17,7 @@ export async function createAndConnectMongoDBClient(
|
|||
events?: ConnectionEvents
|
||||
): Promise<MongoDBClient> {
|
||||
const client = createMongoDBClient(config, logger, events);
|
||||
this.logger = logger || console; // Fallback to console if no logger provided
|
||||
await client.connect();
|
||||
return client;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue