From eb4158df0b285a30ece27bee404012a9ca7f614d Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Sat, 21 Oct 2023 22:12:35 +0200 Subject: [PATCH] (control) Fix start/stop FSM endpoints --- .../nu/marginalia/control/node/svc/ControlNodeService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/services-core/control-service/src/main/java/nu/marginalia/control/node/svc/ControlNodeService.java b/code/services-core/control-service/src/main/java/nu/marginalia/control/node/svc/ControlNodeService.java index 7af265d0..e69edb4f 100644 --- a/code/services-core/control-service/src/main/java/nu/marginalia/control/node/svc/ControlNodeService.java +++ b/code/services-core/control-service/src/main/java/nu/marginalia/control/node/svc/ControlNodeService.java @@ -107,13 +107,13 @@ public class ControlNodeService { } public Object startFsm(Request req, Response rsp) throws Exception { - executorClient.startFsm(Context.fromRequest(req), Integer.parseInt(req.params("node")), req.params("fsm").toUpperCase()); + executorClient.startFsm(Context.fromRequest(req), Integer.parseInt(req.params("id")), req.params("fsm").toUpperCase()); return redirectToOverview(req); } public Object stopFsm(Request req, Response rsp) throws Exception { - executorClient.stopFsm(Context.fromRequest(req), Integer.parseInt(req.params("node")), req.params("fsm").toUpperCase()); + executorClient.stopFsm(Context.fromRequest(req), Integer.parseInt(req.params("id")), req.params("fsm").toUpperCase()); return redirectToOverview(req); }