From d96a6379c2dfe300433533759ca6079fbd62d009 Mon Sep 17 00:00:00 2001 From: Eccentric Date: Mon, 19 Feb 2024 16:26:13 +0000 Subject: [PATCH] FIx server mcp --- handlers/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/server.go b/handlers/server.go index 73c952b..fc59139 100644 --- a/handlers/server.go +++ b/handlers/server.go @@ -29,7 +29,7 @@ func PostServerProfileAction(c *fiber.Ctx) error { multiUpdate := []aid.JSON{} notifications := []aid.JSON{} - if action, ok := serverActions[c.Query("action")]; ok { + if action, ok := serverActions[c.Params("action")]; ok { if err := action(c, person, profile, &profileChanges, &multiUpdate, ¬ifications); err != nil { return c.Status(500).JSON(aid.ErrorBadRequest(err.Error())) }