From a9ea9a374d9b0d3bb36030bdf8c4a472d22fe166 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 25 May 2025 22:05:28 -0400 Subject: [PATCH] Update status response object --- app/routers/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/nodes.py b/app/routers/nodes.py index 2766d8d..9134bc8 100644 --- a/app/routers/nodes.py +++ b/app/routers/nodes.py @@ -161,7 +161,7 @@ async def status(client_id): try: # Send the command and wait for a response status_data = await send_command_to_client(client_id, NodeCommands.STATUS, wait_for_response=True, timeout=5) - return jsonify({"status": "success", "client_id": client_id, "data": status_data}), 200 + return jsonify(status_data), 200 except TimeoutError: return jsonify({"error": f"Client {client_id} did not respond within the timeout period."}), 504