From ee6a636e68031e877eae2fe0c07521791a64dadb Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 5 Jun 2024 22:55:44 +0300 Subject: [PATCH] fix-cache-author --- services/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/cache.py b/services/cache.py index 27dfe18f..3a326a05 100644 --- a/services/cache.py +++ b/services/cache.py @@ -30,7 +30,7 @@ async def cache_author(author: dict): author_id = author.get("id") user_id = author.get("user") payload = json.dumps(author, cls=CustomJSONEncoder) - await redis.execute("SET", f"author:user:{user_id}", author_id) + await redis.execute("SET", f"author:user:{user_id}", payload) await redis.execute("SET", f"author:id:{author_id}", payload)