This commit is contained in:
Untone 2023-10-13 02:38:26 +03:00
parent 77729b30bc
commit 024eebcdea

View File

@ -53,6 +53,9 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
print(f"[resolvers.load] no chats for user with id={author_id}, create one with Discours (id=2)") print(f"[resolvers.load] no chats for user with id={author_id}, create one with Discours (id=2)")
r = await create_chat(None, info, members=[2]) # member with id = 2 is discours r = await create_chat(None, info, members=[2]) # member with id = 2 is discours
cids.append(r["chat"]["id"]) cids.append(r["chat"]["id"])
print(cids)
for cid in cids: for cid in cids:
c = await redis.execute("GET", f"chats/{cid}") c = await redis.execute("GET", f"chats/{cid}")
if c: if c: