diff --git a/resolvers/author.py b/resolvers/author.py index d32222a8..8351326b 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -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") diff --git a/services/auth.py b/services/auth.py index a0d76d66..c2272f64 100644 --- a/services/auth.py +++ b/services/auth.py @@ -71,7 +71,7 @@ def login_required(f): context = info.context # print(context) req = context.get("request") - print(f"[services.auth] request: {req}") + print(f"[services.auth] request headers: {req.headers}") # Performing authentication check is_authenticated, user_id = await check_auth(req) if not is_authenticated: