debug-get-author-but-userid
All checks were successful
Deploy to core / deploy (push) Successful in 1m42s
All checks were successful
Deploy to core / deploy (push) Successful in 1m42s
This commit is contained in:
parent
9c14f4b4d3
commit
4ca884f257
|
@ -194,6 +194,7 @@ async def get_author_by_user_id(user_id: str):
|
|||
redis_key = f"user:{user_id}:author"
|
||||
res = await redis.execute("HGET", redis_key)
|
||||
if isinstance(res, dict) and res.get("id"):
|
||||
logger.debug(f'got cached author: {res}')
|
||||
return res
|
||||
|
||||
logger.info(f"getting author id for {user_id}")
|
||||
|
|
Loading…
Reference in New Issue
Block a user