This commit is contained in:
@@ -165,7 +165,9 @@ async def load_authors_all(_, _info, limit: int = 50, offset: int = 0):
|
||||
async def get_author_id(_, _info, user: str):
|
||||
with local_session() as session:
|
||||
print(f"[resolvers.author] getting author id for {user}")
|
||||
return session.query(Author).where(Author.user == user).first()
|
||||
a = session.query(Author).filter(Author.user == user).first()
|
||||
print(f"[resolvers.author] got {a}")
|
||||
return a
|
||||
|
||||
|
||||
@query.field("get_author")
|
||||
|
Reference in New Issue
Block a user