From 207c814f351155c5b1074593048e16c0ece1a4f9 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Date: Wed, 11 Dec 2024 23:19:23 +0530 Subject: [PATCH] Set COSMOSDB as the default for missing DATABASE_TYPE to ensure compatibility with existing deployments --- code/backend/batch/utilities/helpers/env_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/backend/batch/utilities/helpers/env_helper.py b/code/backend/batch/utilities/helpers/env_helper.py index fa82e2796..1e767bc51 100644 --- a/code/backend/batch/utilities/helpers/env_helper.py +++ b/code/backend/batch/utilities/helpers/env_helper.py @@ -92,7 +92,7 @@ def __load_config(self, **kwargs) -> None: # Chat History DB Integration Settings # Set default values based on DATABASE_TYPE self.DATABASE_TYPE = ( - os.getenv("DATABASE_TYPE", "").strip() or DatabaseType.POSTGRESQL.value + os.getenv("DATABASE_TYPE", "").strip() or DatabaseType.COSMOSDB.value ) # Cosmos DB configuration if self.DATABASE_TYPE == DatabaseType.COSMOSDB.value: