lib/search_flip/bulk.rb in search_flip-4.0.0.beta13 vs lib/search_flip/bulk.rb in search_flip-4.0.0.beta14
- old
+ new
@@ -146,10 +146,10 @@
parsed_response = SearchFlip::JSON.parse(response.to_s)
return unless parsed_response["errors"]
parsed_response["items"].each do |item|
- item.each do |_, element|
+ item.each_value do |element|
status = element["status"]
next if status.between?(200, 299)
next if ignore_errors.include?(status)