FIx server mcp

This commit is contained in:
Eccentric 2024-02-19 16:26:13 +00:00
parent 7c6041e491
commit d96a6379c2

View File

@ -29,7 +29,7 @@ func PostServerProfileAction(c *fiber.Ctx) error {
multiUpdate := []aid.JSON{} multiUpdate := []aid.JSON{}
notifications := []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, &notifications); err != nil { if err := action(c, person, profile, &profileChanges, &multiUpdate, &notifications); err != nil {
return c.Status(500).JSON(aid.ErrorBadRequest(err.Error())) return c.Status(500).JSON(aid.ErrorBadRequest(err.Error()))
} }