mirror of https://gitlab.com/litecord/litecord.git
blueprints.users: use public_user when dispatching to self
This commit is contained in:
parent
a8c4e61417
commit
8f56648544
|
|
@ -195,10 +195,10 @@ async def patch_me():
|
||||||
""", new_hash, user_id)
|
""", new_hash, user_id)
|
||||||
|
|
||||||
user.pop('password_hash')
|
user.pop('password_hash')
|
||||||
await app.dispatcher.dispatch_user(
|
|
||||||
user_id, 'USER_UPDATE', user)
|
|
||||||
|
|
||||||
public_user = await app.storage.get_user(user_id)
|
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)
|
guild_ids = await app.user_storage.get_user_guilds(user_id)
|
||||||
friend_ids = await app.user_storage.get_friend_ids(user_id)
|
friend_ids = await app.user_storage.get_friend_ids(user_id)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue