This commit is contained in:
parent
db7aee730f
commit
50016c0ba7
|
@ -177,7 +177,7 @@ async def get_author(_, _info, slug="", author_id=None):
|
|||
elif author_id:
|
||||
q = select(Author).where(Author.id == author_id)
|
||||
q = add_author_stat_columns(q)
|
||||
print(f"[resolvers.author] SQL: {q}")
|
||||
# print(f"[resolvers.author] SQL: {q}")
|
||||
authors = get_authors_from_query(q)
|
||||
if authors:
|
||||
return authors[0]
|
||||
|
|
|
@ -71,6 +71,7 @@ def login_required(f):
|
|||
context = info.context
|
||||
# print(context)
|
||||
req = context.get("request")
|
||||
print(f"[services.auth] request: {req}")
|
||||
# Performing authentication check
|
||||
is_authenticated, user_id = await check_auth(req)
|
||||
if not is_authenticated:
|
||||
|
|
Loading…
Reference in New Issue
Block a user