fix-cache-topic
All checks were successful
Deploy on push / deploy (push) Successful in 1m8s

This commit is contained in:
Untone 2024-06-05 22:56:48 +03:00
parent ee6a636e68
commit b72ef072e4

View File

@ -23,7 +23,7 @@ async def cache_topic(topic: dict):
topic_slug = topic.get("slug") topic_slug = topic.get("slug")
payload = json.dumps(topic, cls=CustomJSONEncoder) payload = json.dumps(topic, cls=CustomJSONEncoder)
await redis.execute("SET", f"topic:id:{topic_id}", payload) 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): async def cache_author(author: dict):