create-msg-debug

This commit is contained in:
Untone 2023-10-13 21:29:02 +03:00
parent 12e2dbfbdf
commit ee195d4ec7

View File

@ -20,6 +20,7 @@ async def create_message(_, info, chat: str, body: str, reply_to=None):
author_id = info.context["author_id"] author_id = info.context["author_id"]
chat_data = await redis.execute("GET", f"chats/{chat}") chat_data = await redis.execute("GET", f"chats/{chat}")
print(f"[resolvers.messages] debug chat data: {chat_data}")
if not chat_data: if not chat_data:
return {"error": "chat is not exist"} return {"error": "chat is not exist"}
else: else: