webhook-debug
All checks were successful
deploy / deploy (push) Successful in 1m28s

This commit is contained in:
Untone 2023-12-15 18:28:44 +03:00
parent a8ee8cde0b
commit 7e16ee97fa
2 changed files with 2 additions and 1 deletions

View File

@ -284,3 +284,4 @@ async def create_author(user_id: str, slug: str):
new_author = Author(user=user_id, slug=slug) new_author = Author(user=user_id, slug=slug)
session.add(new_author) session.add(new_author)
session.commit() session.commit()
print(f"[resolvers.author] created by webhook {new_author.dict()}")

View File

@ -71,7 +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 headers: {req.headers}") print(f"[services.auth] login_required request headers: {req.headers}")
# 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: