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):