Skip to content

Commit

Permalink
feat(matrix): do not default to latestby=cvpv for consumer/provider m…
Browse files Browse the repository at this point in the history
…atrix

To make the behaviour the same as the UI
  • Loading branch information
bethesque committed May 20, 2019
1 parent 1ad7761 commit 742d506
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pact_broker/matrix/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def find selectors, options = {}

def find_for_consumer_and_provider params, options = {}
selectors = [{ pacticipant_name: params[:consumer_name] }, { pacticipant_name: params[:provider_name] }]
default_options = { latestby: 'cvpv' }
find(selectors, default_options.merge(options))
find(selectors, options)
end

def find_for_consumer_and_provider_with_tags params
Expand Down

0 comments on commit 742d506

Please sign in to comment.