This commit is contained in:
@@ -328,7 +328,7 @@ def raw_mongo_client(
|
||||
mongo_endpoint = str(os.getenv('MONGO_ENDPOINT'))
|
||||
mongo_database = str(os.getenv('MONGO_DB'))
|
||||
# connect client
|
||||
client = MongoClient(mongo_endpoint)
|
||||
client: MongoClient = MongoClient(mongo_endpoint)
|
||||
_ = client[mongo_database]
|
||||
# expose client
|
||||
yield client
|
||||
|
||||
Reference in New Issue
Block a user