following-fix-4
All checks were successful
deploy / deploy (push) Successful in 1m26s

This commit is contained in:
2023-12-17 15:22:07 +03:00
parent 5cccaf43f7
commit 49fe665d4d
2 changed files with 6 additions and 9 deletions

View File

@@ -166,7 +166,8 @@ async def get_author_id(_, _info, user: str):
with local_session() as session:
print(f"[resolvers.author] getting author id for {user}")
a = session.query(Author).filter(Author.user == user).first()
print(f"[resolvers.author] got {a}")
if a:
print(f"[resolvers.author] got @{a.slug}")
return a