Skip to content

Commit 01dd866

Browse files
committed
feat: eager load pacticipant labels for /pacticipants resource
1 parent d208686 commit 01dd866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pact_broker/pacticipants/repository.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def find_all
2323
def find options = {}
2424
query = PactBroker::Domain::Pacticipant.select_all_qualified
2525
query = query.label(options[:label_name]) if options[:label_name]
26-
query.order_ignore_case(Sequel[:pacticipants][:name]).all
26+
query.order_ignore_case(Sequel[:pacticipants][:name]).eager(:labels).all
2727
end
2828

2929
def find_all_pacticipant_versions_in_reverse_order name

0 commit comments

Comments
 (0)