fix deprecation

This commit is contained in:
2026-06-12 00:17:15 +03:00
parent 71dacb926e
commit 6b633af95e
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ assert len(DOORBOY_SECRET_WORKSHOP) >= 10
@app.listener("before_server_start")
async def setup_db(app, loop):
async def setup_db(app):
# TODO: find cleaner way to do this, for more see
# https://github.com/sanic-org/sanic/issues/919
app.ctx.db = AsyncIOMotorClient(MONGO_URI).get_default_database()