Skip to content

Commit

Permalink
#486 fix query param for getExecutionResults
Browse files Browse the repository at this point in the history
  • Loading branch information
treethought committed Oct 13, 2023
1 parent 25dcab0 commit 20a6735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion access/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (h *httpHandler) getExecutionResults(
u := h.mustBuildURL("/execution_results", opts...)

q := u.Query()
q.Add("block_ids", strings.Join(blockIDs, ","))
q.Add("block_id", strings.Join(blockIDs, ","))
u.RawQuery = q.Encode()

var results []models.ExecutionResult
Expand Down
2 changes: 1 addition & 1 deletion access/http/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func TestHandler_GetExecResult(t *testing.T) {

u, _ := url.Parse("/execution_results")
q := u.Query()
q.Add("block_ids", strings.Join(ids, ","))
q.Add("block_id", strings.Join(ids, ","))
u.RawQuery = q.Encode()

req.SetData(*u, fixture)
Expand Down

0 comments on commit 20a6735

Please sign in to comment.