auth-debug
All checks were successful
deploy / deploy (push) Successful in 1m33s

This commit is contained in:
Untone 2023-12-15 16:55:12 +03:00
parent db7aee730f
commit 50016c0ba7
2 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,7 @@ async def get_author(_, _info, slug="", author_id=None):
elif author_id: elif author_id:
q = select(Author).where(Author.id == author_id) q = select(Author).where(Author.id == author_id)
q = add_author_stat_columns(q) q = add_author_stat_columns(q)
print(f"[resolvers.author] SQL: {q}") # print(f"[resolvers.author] SQL: {q}")
authors = get_authors_from_query(q) authors = get_authors_from_query(q)
if authors: if authors:
return authors[0] return authors[0]

View File

@ -71,6 +71,7 @@ def login_required(f):
context = info.context context = info.context
# print(context) # print(context)
req = context.get("request") req = context.get("request")
print(f"[services.auth] request: {req}")
# Performing authentication check # Performing authentication check
is_authenticated, user_id = await check_auth(req) is_authenticated, user_id = await check_auth(req)
if not is_authenticated: if not is_authenticated: