diff --git a/resolvers/follower.py b/resolvers/follower.py index e43b3efd..b56f0b94 100644 --- a/resolvers/follower.py +++ b/resolvers/follower.py @@ -53,8 +53,7 @@ async def follow(_, info, what, slug): elif what == 'TOPIC': if not topic_follow(follower.id, slug): return {"error": "cant follow topic"} - topic_query = select(Topic).where(Topic.slug == slug) - [topic] = get_with_stat(topic_query) + [topic] = get_with_stat(select(Topic).where(Topic.slug == slug)) if not topic: return {"error": "topic is not found"} follows = await update_follows_for_author(follower, 'topic', topic, True) diff --git a/schema/enum.graphql b/schema/enum.graphql index 04f22a8c..f4e472e9 100644 --- a/schema/enum.graphql +++ b/schema/enum.graphql @@ -36,8 +36,8 @@ enum ReactionKind { enum FollowingEntity { TOPIC AUTHOR + SHOUT COMMUNITY - REACTIONS } enum InviteStatus {