async-fix-2
This commit is contained in:
parent
f43624ca3d
commit
9d9adfbdfa
|
@ -320,7 +320,7 @@ async def get_author_followers(_, _info, slug: str):
|
|||
author_alias = aliased(Author)
|
||||
author_query = select(author_alias).filter_by(slug=slug)
|
||||
with local_session() as session:
|
||||
result = await session.execute(author_query).first()
|
||||
result = session.execute(author_query).first()
|
||||
if not result:
|
||||
return []
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user