This commit is contained in:
parent
c6ad0414b0
commit
412bf1fbbf
|
@ -41,7 +41,7 @@ async def load_messages(chat_id: str, limit: int = 5, offset: int = 0, ids: Opti
|
|||
replies.append(reply_to)
|
||||
if replies:
|
||||
messages += await load_messages(chat_id, offset, limit, replies)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
return messages
|
||||
|
|
|
@ -15,7 +15,7 @@ async def check_auth(req):
|
|||
query_type = "mutation" if INTERNAL_AUTH_SERVER else "query"
|
||||
operation = "GetUserId"
|
||||
|
||||
headers = {"Authorization": "Bearer " + token, "Content-Type": "application/json"}
|
||||
headers = {"Authorization": token, "Content-Type": "application/json"} # "Bearer " + removed
|
||||
|
||||
gql = {
|
||||
"query": query_type + " " + operation + " { " + query_name + " { user { id } } " + " }",
|
||||
|
|
Loading…
Reference in New Issue
Block a user