Skip to content

Commit

Permalink
fix: invalid comparison in filters
Browse files Browse the repository at this point in the history
  • Loading branch information
exu committed Feb 3, 2022
1 parent 390a32c commit 36dc78e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/app/api/v1/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 36dc78e

Please sign in to comment.