Skip to content

Commit

Permalink
chore: update matrix ui
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 30, 2017
1 parent f979210 commit 5690a77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pact_broker/ui/controllers/matrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Matrix < Base
include PactBroker::Services

get "/provider/:provider_name/consumer/:consumer_name" do
lines = matrix_service.find(params[:consumer_name] => nil, params[:provider_name] => nil)
selectors = [{ pacticipant_name: params[:consumer_name] }, { pacticipant_name: params[:provider_name] } ]
lines = matrix_service.find(selectors)
lines = lines.collect{|line| PactBroker::UI::ViewDomain::MatrixLine.new(line) }.sort
locals = {
lines: lines,
Expand Down

0 comments on commit 5690a77

Please sign in to comment.