forked from k-space/doorboy-proxy
fix deprecation
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user