Fix bug when checking if token is in active clients
All checks were successful
release-image / release-image (push) Successful in 2m5s

This commit is contained in:
Logan Cusano
2025-06-29 18:34:20 -04:00
parent f50503cca8
commit df4e7f7d67

View File

@@ -188,10 +188,9 @@ async def delete_discord_token(discord_id_param: str):
def find_token_in_active_clients(target_token: str) -> bool:
"""
Checks if a target_token exists in the active_token of any ActiveClient object in a list.
Checks if a target_token exists in the active_token of any online ActiveClient object.
Args:
clients: A list of ActiveClient objects.
target_token: The token string to search for.
Returns:
@@ -199,7 +198,7 @@ def find_token_in_active_clients(target_token: str) -> bool:
"""
for client_id in current_app.active_clients:
try:
if current_app.active_clients[client_id].active_token == target_token:
if current_app.active_clients[client_id].active_token.token == target_token:
return True
except Exception as e:
pass