uniauth
All checks were successful
deploy / deploy (push) Successful in 1m21s

This commit is contained in:
Untone 2023-11-06 19:02:16 +03:00
parent c6ad0414b0
commit 412bf1fbbf
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ async def load_messages(chat_id: str, limit: int = 5, offset: int = 0, ids: Opti
replies.append(reply_to) replies.append(reply_to)
if replies: if replies:
messages += await load_messages(chat_id, offset, limit, replies) messages += await load_messages(chat_id, offset, limit, replies)
except Exception as e: except Exception:
import traceback import traceback
traceback.print_exc() traceback.print_exc()
return messages return messages

View File

@ -15,7 +15,7 @@ async def check_auth(req):
query_type = "mutation" if INTERNAL_AUTH_SERVER else "query" query_type = "mutation" if INTERNAL_AUTH_SERVER else "query"
operation = "GetUserId" operation = "GetUserId"
headers = {"Authorization": "Bearer " + token, "Content-Type": "application/json"} headers = {"Authorization": token, "Content-Type": "application/json"} # "Bearer " + removed
gql = { gql = {
"query": query_type + " " + operation + " { " + query_name + " { user { id } } " + " }", "query": query_type + " " + operation + " { " + query_name + " { user { id } } " + " }",