redis-fix
All checks were successful
deploy / deploy (push) Successful in 1m16s

This commit is contained in:
Untone 2023-11-26 15:13:55 +03:00
parent a442119495
commit 6134b02c4a
2 changed files with 4 additions and 4 deletions

View File

@ -8,12 +8,12 @@ async def check_auth(req):
headers = {"Authorization": token, "Content-Type": "application/json"} # "Bearer " + removed
print(f"[services.auth] checking auth token: {token}")
query_name = "getSession" if "v2." in AUTH_URL else "session"
query_type = "mutation" if "v2." in AUTH_URL else "query"
query_name = "session"
query_type = "query"
operation = "GetUserId"
gql = {
"query": query_type + " " + operation + " { " + query_name + " { user { id } } " + " }",
"query": query_type + " " + operation + " { " + query_name + " { user { id } } }",
"operationName": operation,
"variables": None,
}

View File

@ -59,7 +59,7 @@ class RedisCache:
async def listen(self, channel):
pubsub = self._client.pubsub()
pubsub.subscribe(channel)
await pubsub.subscribe(channel)
while True:
message = pubsub.get_message()