joinedload-fix

This commit is contained in:
Untone 2023-11-30 19:37:53 +03:00
parent f1ccef7919
commit e82ca2e385

View File

@ -142,7 +142,7 @@ async def load_shouts_by(_, info, options):
q = (
select(Shout, Author)
.options(
joinedload(Shout.authors, Shout.authors.contains(Author.id)),
joinedload(Shout.authors).joinedload(Author.id),
joinedload(Shout.topics),
)
.where(Shout.deleted_at.is_(None))