fix-scheme

This commit is contained in:
2022-11-08 18:50:28 +03:00
parent 9052872c87
commit 5bf3621724
5 changed files with 17 additions and 12 deletions

View File

@@ -107,7 +107,7 @@ async def create_chat(_, info, title="", members=[]):
}
async def load_messages(chatId: int, offset: int, amount: int):
async def load_messages(chatId: str, offset: int, amount: int):
messages = []
message_ids = await redis.lrange(
f"chats/{chatId}/message_ids", 0 - offset - amount, 0 - offset