diff --git a/app/routers/nodes.py b/app/routers/nodes.py index 911a661..a34144d 100644 --- a/app/routers/nodes.py +++ b/app/routers/nodes.py @@ -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([client.json() for client in current_app.active_clients]) + return jsonify([current_app.active_clients[client.json()] for client in current_app.active_clients]) @nodes_bp.route("/online", methods=['GET'])