From fc774adb9ffa232bcfd9320a398f3315bdaca63e Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 25 Feb 2024 21:43:30 +0300 Subject: [PATCH] search-authors-fix --- resolvers/author.py | 4 ++-- schema/query.graphql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resolvers/author.py b/resolvers/author.py index 22d3fef4..dda78c12 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -220,6 +220,6 @@ def get_author_followers(_, _info, slug: str): @query.field('search_authors') -def search_authors(_, info, t: str): - q = search(select(Author), t) +def search_authors(_, info, what: str): + q = search(select(Author), what) return get_with_stat(q) diff --git a/schema/query.graphql b/schema/query.graphql index 364a09cc..b4d2f5d2 100644 --- a/schema/query.graphql +++ b/schema/query.graphql @@ -4,7 +4,7 @@ type Query { get_author_id(user: String!): Author get_authors_all: [Author] load_authors_by(by: AuthorsBy!, limit: Int, offset: Int): [Author] - search_authors(text: String!): [Author] + search_authors(what: String!): [Author] # community get_community: Community