We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ef5f03 commit fd0744aCopy full SHA for fd0744a
app/database.py
@@ -43,7 +43,7 @@ async def initialize(self) -> None:
43
async def close(self) -> None:
44
if self.mongo_client:
45
logger.info("Closing MongoDB connection...")
46
- self.mongo_client.close()
+ await self.mongo_client.close()
47
self.mongo_client = None
48
self.securechain_db = None
49
logger.info("MongoDB connection closed")
0 commit comments