From 977b86a3c6beebd7cfc585fc486db50c24019019 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 29 Feb 2024 10:39:07 +0300 Subject: [PATCH] fix-followers-save --- resolvers/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/author.py b/resolvers/author.py index 14b02395..8e20493a 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -243,7 +243,7 @@ async def get_author_followers(_, _info, slug: str): ) ) results = get_with_stat(q) - _ = asyncio.create_task(update_author_followers_cache(author_id, results)) + _ = asyncio.create_task(update_author_followers_cache(author_id, [x.dict() for x in results])) logger.debug(f'@{slug} cache updated with {len(results)} followers') return results else: