Restructure to activeclient so it always has DiscordId object for active token (if active)
All checks were successful
release-image / release-image (push) Successful in 2m8s

This commit is contained in:
Logan Cusano
2025-06-29 18:19:56 -04:00
parent 7e538b693e
commit bcff5a4981
3 changed files with 10 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ async def send_command_to_all_clients(command_name, *args):
@role_required(UserRoles.USER)
async def get_nodes():
"""API endpoint to list currently connected client IDs."""
return jsonify([current_app.active_clients[client_id].json() for client_id in current_app.active_clients])
return jsonify([current_app.active_clients[client_id].to_dict() for client_id in current_app.active_clients])
@nodes_bp.route("/online", methods=['GET'])