From b72ef072e403b32e8faab88139dd39a56da7c659 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 5 Jun 2024 22:56:48 +0300 Subject: [PATCH] fix-cache-topic --- services/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/cache.py b/services/cache.py index 3a326a05..624703e6 100644 --- a/services/cache.py +++ b/services/cache.py @@ -23,7 +23,7 @@ async def cache_topic(topic: dict): topic_slug = topic.get("slug") payload = json.dumps(topic, cls=CustomJSONEncoder) await redis.execute("SET", f"topic:id:{topic_id}", payload) - await redis.execute("SET", f"topic:slug:{topic_slug}", topic_id) + await redis.execute("SET", f"topic:slug:{topic_slug}", payload) async def cache_author(author: dict):