redis-set-result-fix-2

This commit is contained in:
2023-10-13 12:50:00 +03:00
parent 723a0a2818
commit e75b37e177
2 changed files with 1 additions and 7 deletions

View File

@@ -52,8 +52,6 @@ async def create_chat(_, info, title="", members=None):
if author_id not in members:
members.append(int(author_id))
await redis.execute('MULTI')
# NOTE: private chats has no title
# reuse private chat created before if exists
if len(members) == 2 and title == "":
@@ -90,9 +88,6 @@ async def create_chat(_, info, title="", members=None):
await redis.execute("SET", f"chats/{chat_id}", json.dumps(chat))
await redis.execute("SET", f"chats/{chat_id}/next_message_id", str(0))
response = await redis.execute('EXEC')
print(f"EXEC response: {response}")
return {"error": None, "chat": chat}