From d0583b2bf71a2e425d6c3ba511e1121c41ea6561 Mon Sep 17 00:00:00 2001 From: Relrin Date: Wed, 10 May 2023 19:13:22 +0200 Subject: [PATCH] Migrated to the latest stable umongo version --- sanic_mongodb_ext/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic_mongodb_ext/__init__.py b/sanic_mongodb_ext/__init__.py index 2a74157..fdfa0e2 100644 --- a/sanic_mongodb_ext/__init__.py +++ b/sanic_mongodb_ext/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.5.0' +__version__ = '0.6.0' __all__ = ['MongoDbExtension', ] VERSION = __version__ @@ -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):