lib/eco/api/session/batch/errors.rb in eco-helpers-2.0.10 vs lib/eco/api/session/batch/errors.rb in eco-helpers-2.0.11

- old
+ new

@@ -122,10 +122,10 @@ # @raise [Exception] if there are elements of the final `queue` that did not get response # @note discards those that did not get _response_ from the Server (so those that were not queried) # - please, observe that this can only happen if there were repeated entries in the `source_queue` # @return [Array<Hash>, Array<Ecoportal::API::V1::Person>, Array<Ecoportal::API::Internal::Person>] def entries - queue.filter.with_index do |query, i| + queue.select.with_index do |query, i| unless response = status[i] msg = "Error: query with no response. You might have duplicated entries in your queue.\n" msg += "Queue length: #{queue.length}; Queue elements class: #{queue.first.class}\n" msg += "Query with no response. Person: #{person_ref(query)}\n" queue.map do |entry|