From 51f56c0f1feac29b3bd9a36efd39ffcc6fc687b6 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 9 Jun 2024 14:02:24 +0300 Subject: [PATCH] issue#842-fix --- services/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/cache.py b/services/cache.py index c57a603b..bb8f435c 100644 --- a/services/cache.py +++ b/services/cache.py @@ -104,7 +104,7 @@ async def get_cached_topic_by_slug(slug: str, get_with_stat): if result: topic = result if isinstance(result, Topic) else result[0] if topic: - await cache_topic(topic) + await cache_topic(topic.dict()) return topic