fix: mongo db database name in settings

This commit is contained in:
Alex
2025-04-24 17:29:41 +01:00
parent 76fd6e15cc
commit df9d432d29
10 changed files with 16 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ from application.utils import check_required_fields, limit_chat_history
logger = logging.getLogger(__name__)
mongo = MongoDB.get_client()
db = mongo["docsgpt"]
db = mongo[settings.MONGO_DB_NAME]
conversations_collection = db["conversations"]
sources_collection = db["sources"]
prompts_collection = db["prompts"]