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:
|
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]
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user