Skip to content

Commit

Permalink
Migrated to the latest stable umongo version
Browse files Browse the repository at this point in the history
  • Loading branch information
Relrin committed May 10, 2023
1 parent 1b93d6b commit d0583b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sanic_mongodb_ext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.5.0'
__version__ = '0.6.0'
__all__ = ['MongoDbExtension', ]

VERSION = __version__
Expand Down Expand Up @@ -32,7 +32,7 @@ async def mongodb_configure(app_inner, _loop):
database = app_inner.config.get('MONGODB_DATABASE', None)
if lazy_instance and database:
motor_database_client = client[database]
lazy_instance.init(motor_database_client)
lazy_instance.set_db(motor_database_client)

@app.listener('after_server_stop')
async def mongodb_free_resources(app_inner, _loop):
Expand Down

0 comments on commit d0583b2

Please sign in to comment.