graphql-schema-update
Some checks failed
Deploy to core / deploy (push) Failing after 1m46s

This commit is contained in:
2024-02-21 11:52:57 +03:00
parent 9eee73acf3
commit ee577c75fd
5 changed files with 69 additions and 58 deletions

View File

@@ -265,21 +265,6 @@ async def get_author_follows(
raise ValueError("Author not found")
@query.field("get_author_followers")
async def get_author_followers(_, _info, slug) -> List[Author]:
q = select(Author)
q = add_author_stat_columns(q)
aliased_author = aliased(Author)
q = (
q.join(AuthorFollower, AuthorFollower.follower == Author.id)
.join(aliased_author, aliased_author.id == AuthorFollower.author)
.where(aliased_author.slug == slug)
)
return await get_authors_from_query(q)
@mutation.field("rate_author")
@login_required
async def rate_author(_, info, rated_slug, value):