From a62ff80cbc5a75e4704f4f8e83895f469b279932 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Mon, 6 Nov 2017 11:42:20 +1100 Subject: [PATCH] style: comment --- lib/pact_broker/matrix/repository.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pact_broker/matrix/repository.rb b/lib/pact_broker/matrix/repository.rb index d87faa37c..005777f5c 100644 --- a/lib/pact_broker/matrix/repository.rb +++ b/lib/pact_broker/matrix/repository.rb @@ -70,6 +70,8 @@ def find_all selectors, options query = where_consumer_and_provider_in(selectors, query) end + # TODO need to order by most recent first, otherwise the limit will give us the oldest rows + query = query.limit(options[:limit]) if options[:limit] query.order(:verification_executed_at, :verification_id).all