fix-load-messages

This commit is contained in:
2022-12-05 10:10:49 +03:00
parent a034eda220
commit 058fdcc64f
2 changed files with 62 additions and 35 deletions

View File

@@ -33,6 +33,7 @@ async def create_message(_, info, chat: str, body: str, replyTo=None):
"replyTo": replyTo,
"createdAt": int(datetime.now(tz=timezone.utc).timestamp()),
}
print(f"[inbox] creating message {new_message}")
await redis.execute(
"SET", f"chats/{chat['id']}/messages/{message_id}", json.dumps(new_message)
)