From d7d84adad2a37fcb32f89ba5c2dd2a4f0ea24049 Mon Sep 17 00:00:00 2001 From: Daniel Brain Date: Wed, 27 Apr 2016 15:58:42 -0700 Subject: [PATCH] Fix response data field --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d4913221..db242a47 100644 --- a/index.js +++ b/index.js @@ -1021,7 +1021,7 @@ ack: CONSTANTS.POST_MESSAGE_ACK.SUCCESS, hash: message.hash, name: message.name, - data: data || {}, + response: data || {}, target: target }); } catch (err) { @@ -1101,7 +1101,7 @@ if (message.ack === CONSTANTS.POST_MESSAGE_ACK.ERROR) { return options.respond(message.error); } else if (message.ack === CONSTANTS.POST_MESSAGE_ACK.SUCCESS) { - return options.respond(null, message.data); + return options.respond(null, message.response); } };