diff --git a/internal/app/api/v1/server.go b/internal/app/api/v1/server.go index 795029fac82..8f5bc5a1046 100644 --- a/internal/app/api/v1/server.go +++ b/internal/app/api/v1/server.go @@ -175,10 +175,11 @@ func getFilterFromRequest(c *fiber.Ctx) result.Filter { // id for /scripts/ID/executions scriptName := c.Params("id", "") - if scriptName != "" { + if scriptName == "" { // query param for /executions?scriptName scriptName = c.Query("scriptName", "") } + if scriptName != "" { filter = filter.WithScriptName(scriptName) }