Skip to content

Commit 20a6735

Browse files
committed
onflow#486 fix query param for getExecutionResults
1 parent 25dcab0 commit 20a6735

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

access/http/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func (h *httpHandler) getExecutionResults(
398398
u := h.mustBuildURL("/execution_results", opts...)
399399

400400
q := u.Query()
401-
q.Add("block_ids", strings.Join(blockIDs, ","))
401+
q.Add("block_id", strings.Join(blockIDs, ","))
402402
u.RawQuery = q.Encode()
403403

404404
var results []models.ExecutionResult

access/http/handler_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ func TestHandler_GetExecResult(t *testing.T) {
539539

540540
u, _ := url.Parse("/execution_results")
541541
q := u.Query()
542-
q.Add("block_ids", strings.Join(ids, ","))
542+
q.Add("block_id", strings.Join(ids, ","))
543543
u.RawQuery = q.Encode()
544544

545545
req.SetData(*u, fixture)

0 commit comments

Comments
 (0)