lib/hypernova/request_service.rb in hypernova-1.3.0 vs lib/hypernova/request_service.rb in hypernova-1.4.0
- old
+ new
@@ -7,10 +7,10 @@
def render_batch(jobs)
return render_batch_blank(jobs) if jobs.empty?
response_body = Hypernova::ParsedResponse.new(jobs).body
response_body.each do |index_string, resp|
- on_error(build_error(resp["error"]), jobs[index_string.to_i]) if resp["error"]
+ on_error(build_error(resp["error"]), jobs[index_string]) if resp["error"]
end
build_renderer(jobs).render(response_body)
end
def render_batch_blank(jobs)