From 7f1794891c86b8c43f360f17af9b66cc186b60cb Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 26 Apr 2024 11:21:00 +0300 Subject: [PATCH] cache-follower-fix --- resolvers/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/author.py b/resolvers/author.py index c75ee5a0..0700287a 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -310,7 +310,7 @@ async def get_author_followers(_, _info, slug: str): results = get_with_stat(q) if isinstance(results, list): 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") return results else: