blueprints.users: use public_user when dispatching to self

This commit is contained in:
Luna Mendes 2018-11-19 14:58:15 -03:00
parent a8c4e61417
commit 8f56648544
1 changed files with 2 additions and 2 deletions

View File

@ -195,10 +195,10 @@ async def patch_me():
""", new_hash, user_id)
user.pop('password_hash')
await app.dispatcher.dispatch_user(
user_id, 'USER_UPDATE', user)
public_user = await app.storage.get_user(user_id)
await app.dispatcher.dispatch_user(
user_id, 'USER_UPDATE', public_user)
guild_ids = await app.user_storage.get_user_guilds(user_id)
friend_ids = await app.user_storage.get_friend_ids(user_id)