noawait-dict

This commit is contained in:
tonyrewin 2022-11-11 10:04:16 +03:00
parent e2001a7f3f
commit 2de5ac0c99

View File

@ -35,7 +35,7 @@ async def add_user_to_chat(user_slug: str, chat_id: str, chat=None):
if not chat:
chat = await redis.execute("GET", f"chats/{chat_id}")
if chat:
chat = await json.loads(chat)
chat = dict(json.loads(chat))
if chats_ids:
chats_ids = list(json.loads(chats_ids))
else: