fix: Settings import

This commit is contained in:
kom-senapati
2024-10-22 17:58:41 +05:30
parent 5ba917c5e4
commit 3b76b3ddce
6 changed files with 7 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
from application.core 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