From a79f3cd5ec141e308467afe3f2288c53309112ab Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 17 Dec 2023 09:23:15 +0300 Subject: [PATCH] community-author-fix-2 --- resolvers/follower.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resolvers/follower.py b/resolvers/follower.py index 591238f2..36bab02e 100644 --- a/resolvers/follower.py +++ b/resolvers/follower.py @@ -2,7 +2,7 @@ from typing import List from sqlalchemy import select -from orm.community import Community, CommunityAuthor as CommunityFollower +from orm.community import Community, CommunityAuthor from orm.reaction import Reaction from orm.shout import Shout from orm.topic import Topic, TopicFollower @@ -103,8 +103,8 @@ async def get_my_followed(_, info): topics_query = select(Topic).join(TopicFollower).where(TopicFollower.follower == author.id) communities_query = ( select(Community) - .join(CommunityFollower, CommunityFollower.author == Author.id) - .where(CommunityFollower.follower == author.id) + .join(CommunityAuthor, CommunityAuthor.author == Author.id) + .where(CommunityAuthor.author == author.id) ) topics = [] authors = []