diff --git a/resolvers/rating.py b/resolvers/rating.py index 9124be88..27110009 100644 --- a/resolvers/rating.py +++ b/resolvers/rating.py @@ -12,7 +12,7 @@ from utils.logger import root_logger as logger @query.field("get_my_rates_comments") @login_required -async def get_my_rates_comments(_, info, comments: list[int], shout: int) -> list[dict]: +async def get_my_rates_comments(_, info, comments: list[int]) -> list[dict]: """ Получение реакций пользователя на комментарии """ @@ -26,7 +26,6 @@ async def get_my_rates_comments(_, info, comments: list[int], shout: int) -> lis select(Reaction.id.label("comment_id"), Reaction.kind.label("my_rate")) .where( and_( - Reaction.shout == shout, Reaction.reply_to.in_(comments), Reaction.created_by == author_id, Reaction.deleted_at.is_(None), diff --git a/schema/query.graphql b/schema/query.graphql index 69a1a582..6c87f50d 100644 --- a/schema/query.graphql +++ b/schema/query.graphql @@ -34,7 +34,7 @@ type Query { # rating get_my_rates_shouts(shouts: [Int!]!): [MyRateShout] - get_my_rates_comments(comments: [Int!]!, shout: Int!): [MyRateComment] + get_my_rates_comments(comments: [Int!]!): [MyRateComment] # public feeds load_shouts_with_topic(slug: String, options: LoadShoutsOptions): [Shout] # topic feed