lib/mongo/protocol/msg.rb in mongo-2.7.0 vs lib/mongo/protocol/msg.rb in mongo-2.7.1
- old
+ new
@@ -81,10 +81,10 @@
# @return [ BSON::Document ] The event payload.
#
# @since 2.5.0
def payload
BSON::Document.new(
- command_name: command.keys.first,
+ command_name: command.keys.first.to_s,
database_name: global_args[DATABASE_IDENTIFIER],
command: command,
request_id: request_id,
reply: sections[0]
)