cache-follower-fix
All checks were successful
Deploy on push / deploy (push) Successful in 22s

This commit is contained in:
Untone 2024-04-26 11:21:00 +03:00
parent ee24f2f1db
commit 7f1794891c

View File

@ -310,7 +310,7 @@ async def get_author_followers(_, _info, slug: str):
results = get_with_stat(q) results = get_with_stat(q)
if isinstance(results, list): if isinstance(results, list):
for follower in results: for follower in results:
await cache_follower(follower, author) await cache_follower(follower.dict(), author.dict())
logger.debug(f"@{slug} cache updated with {len(results)} followers") logger.debug(f"@{slug} cache updated with {len(results)} followers")
return results return results
else: else: