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") @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 # TODO: find cleaner way to do this, for more see
# https://github.com/sanic-org/sanic/issues/919 # https://github.com/sanic-org/sanic/issues/919
app.ctx.db = AsyncIOMotorClient(MONGO_URI).get_default_database() app.ctx.db = AsyncIOMotorClient(MONGO_URI).get_default_database()

View File

@@ -46,7 +46,7 @@ def approvedStr(approved: bool) -> str:
# consumes SLACK_DOORLOG_CALLBACK and app.ctx.db # consumes SLACK_DOORLOG_CALLBACK and app.ctx.db
@slack_app.listener("after_server_start") @slack_app.listener("after_server_start")
async def slack_log_fwd(app, loop): async def slack_log_fwd(app):
pipeline = [ pipeline = [
{ {
"$match": { "$match": {