..
This commit is contained in:
parent
7fe026cb41
commit
ccbbc04051
|
@ -207,7 +207,7 @@ async def get_author(_, _info, slug="", author_id=None):
|
||||||
@query.field("get_author_id")
|
@query.field("get_author_id")
|
||||||
async def get_author_id(_, _info, user: str):
|
async def get_author_id(_, _info, user: str):
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
logger.info(f"[resolvers.author] getting author id for {user}")
|
logger.info(f"getting author id for {user}")
|
||||||
q = select(Author).filter(Author.user == user)
|
q = select(Author).filter(Author.user == user)
|
||||||
return await load_author_with_stats(q)
|
return await load_author_with_stats(q)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user