added cli-covarage tool and fixed more tests

This commit is contained in:
Boki 2025-06-26 14:23:01 -04:00
parent b63e58784c
commit b845a8eade
57 changed files with 11917 additions and 295 deletions

View file

@ -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 = {