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