fix-payload
All checks were successful
deploy / deploy (push) Successful in 1m11s

This commit is contained in:
Untone 2023-10-16 17:07:01 +03:00
parent 3f83d252fa
commit 37b3391660

View File

@ -6,7 +6,7 @@ from validators.chat import Message
async def notify_message(message: Message, chat_id: str):
channel_name = f"chat:{chat_id}"
data = {**message, "kind": "new_message"}
data = {"payload": message, "kind": "new_message"}
try:
await redis.publish(channel_name, json.dumps(data))
except Exception as e: