lib/eco/api/session/batch.rb in eco-helpers-1.5.1 vs lib/eco/api/session/batch.rb in eco-helpers-1.5.2
- old
+ new
@@ -22,10 +22,10 @@
# @option params [String] :page the page number `page` based on `:per_page`.
# @option params [String] :per_page the number of people included per each batch api request.
# @option params [String] :q some text to search. Omit this parameter to target all the people.
# @return [Array<People>] all the people based on `params`
def get_people(people = nil, params: {}, silent: false)
- return launch(people, method: :get, params: params, silent: silent) if people.is_a?(Enumerable)
+ return launch(people, method: :get, params: params, silent: silent).people if people.is_a?(Enumerable)
return get(params: params, silent: silent)
end
# launches a batch of `method` type using `people` and the specified `params`
# @raise Exception