[WEB-4720] fix: mongo connection class to initialize mongo db #7652
This commit is contained in:
parent
0e6fbaee3a
commit
ddeabeeeb1
2 changed files with 7 additions and 0 deletions
|
|
@ -118,4 +118,7 @@ class MongoConnection:
|
|||
Returns:
|
||||
bool: True if MongoDB is configured and connected, False otherwise
|
||||
"""
|
||||
|
||||
if cls._client is None:
|
||||
cls._instance = cls()
|
||||
return cls._client is not None and cls._db is not None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue