redis-hset-fix
All checks were successful
Deploy to core / deploy (push) Successful in 1m25s

This commit is contained in:
2024-02-21 13:51:07 +03:00
parent 2cfcab744e
commit 3b867ded20
3 changed files with 4 additions and 4 deletions

View File

@@ -200,7 +200,7 @@ async def get_author_by_user_id(user_id: str):
logger.info(f"getting author id for {user_id}")
q = select(Author).filter(Author.user == user_id)
author = await load_author_with_stats(q)
await redis.execute("HSET", redis_key, author.dict())
await redis.execute("HSET", redis_key, **author.dict())
return author