fix: import settings object of Settings class in mongo_db.py

This commit is contained in:
kom-senapati
2024-10-28 19:30:38 +05:30
parent 1502adfb85
commit 18ed255f5a

View File

@@ -1,4 +1,4 @@
from application.core.settings import Settings
from application.core.settings import settings
from pymongo import MongoClient
@@ -11,7 +11,7 @@ class MongoDB:
Get the MongoDB client instance, creating it if necessary.
"""
if cls._client is None:
cls._client = MongoClient(Settings.MONGO_URI)
cls._client = MongoClient(settings.MONGO_URI)
return cls._client
@classmethod