create-msg-debug
This commit is contained in:
parent
12e2dbfbdf
commit
ee195d4ec7
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user