fix some calls not needing app

This commit is contained in:
Luna 2019-10-25 11:31:12 -03:00
parent f6f50a1cff
commit 2bc7bb3924
2 changed files with 2 additions and 6 deletions

View File

@ -809,11 +809,7 @@ async def suppress_embeds(channel_id: int, message_id: int):
except KeyError: except KeyError:
pass pass
app.sched.spawn( app.sched.spawn(process_url_embed(message))
process_url_embed(
app.config, app.storage, app.dispatcher, app.session, message
)
)
return "", 204 return "", 204

View File

@ -276,7 +276,7 @@ async def patch_me():
user.pop("password_hash") user.pop("password_hash")
_, private_user = await mass_user_update(user_id, app) _, private_user = await mass_user_update(user_id)
return jsonify(private_user) return jsonify(private_user)