some-fixes-graphql

This commit is contained in:
2023-10-12 15:28:12 +03:00
parent f6ef50f878
commit 405dbb49cf
2 changed files with 12 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
members_online = (await redis.execute("SMEMBERS", "authors-online")) or []
chats = []
if len(cids) == 0:
print("[resolvers.load] no chats for user {}, 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 = 1 is discours
cids.append(r["chat"]["id"])
for cid in cids: