more-fixes

This commit is contained in:
2023-10-11 22:41:40 +03:00
parent 8cac67986c
commit 8c87457a09
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ from services.auth import login_required
async def get_unread_counter(chat_id: str, author_id: int):
try:
unread = await redis.execute(
"LLEN", f"chats/{chat_id.decode('utf-8')}/unread/{author_id}"
"LLEN", f"chats/{chat_id}/unread/{author_id}"
)
if unread:
return unread