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)
|
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
|
||||||
|
|
|
@ -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 } } " + " }",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user