all-authors-fix

This commit is contained in:
2023-12-02 22:33:00 +03:00
parent fc3745f07e
commit 1cdf286594
2 changed files with 38 additions and 27 deletions

View File

@@ -161,7 +161,7 @@ async def load_shouts_by(_, info, options):
q = apply_filters(q, options.get("filters", {}))
# group
q = q.group_by(Shout.id, Author.user, Author.name, Author.slug)
q = q.group_by(Shout.id, Author.user, Author.name, Author.slug, Author.bio, Author.id)
# order
order_by = options.get("order_by", Shout.published_at)