added cli-covarage tool and fixed more tests
This commit is contained in:
parent
b63e58784c
commit
b845a8eade
57 changed files with 11917 additions and 295 deletions
|
|
@ -10,7 +10,7 @@ export function registerDatabaseServices(
|
|||
config: AppConfig
|
||||
): void {
|
||||
// MongoDB
|
||||
if (config.mongodb.enabled) {
|
||||
if (config.mongodb?.enabled) {
|
||||
container.register({
|
||||
mongoClient: asFunction(({ logger }) => {
|
||||
// Parse MongoDB URI to extract components
|
||||
|
|
@ -36,7 +36,7 @@ export function registerDatabaseServices(
|
|||
}
|
||||
|
||||
// PostgreSQL
|
||||
if (config.postgres.enabled) {
|
||||
if (config.postgres?.enabled) {
|
||||
container.register({
|
||||
postgresClient: asFunction(({ logger }) => {
|
||||
const pgConfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue