lib/mongoid/contextual/map_reduce.rb in mongoid-5.1.5 vs lib/mongoid/contextual/map_reduce.rb in mongoid-5.1.6
- old
+ new
@@ -297,10 +297,10 @@
# @return [ Hash ] The results of the command.
#
# @since 3.0.0
def results
raise Errors::NoMapReduceOutput.new(command) unless command[:out]
- @results ||= __client__.command(command).first
+ @results ||= __client__.command(command,__client__.options).first
end
# Get the client with the proper consistency.
#
# @api private