diff --git a/services/precache.py b/services/precache.py index 67759097..629a9a6e 100644 --- a/services/precache.py +++ b/services/precache.py @@ -136,7 +136,7 @@ async def precache_data(): authors_by_id[author_id] = profile author_payload = json.dumps(profile, cls=CustomJSONEncoder) await redis.execute("SET", f"author:id:{author_id}", author_payload) - await redis.execute("SET", f"author:user:{user_id.strip()}", author_payload) + await redis.execute("SET", f"author:user:{user_id.strip()}", author_id) else: logger.error(f"caching {author.dict()}") logger.info(f"{len(authors)} authors precached")