Skip to content

Commit

Permalink
Fix response data field
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Brain committed Apr 27, 2016
1 parent 634424b commit d7d84ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@
ack: CONSTANTS.POST_MESSAGE_ACK.SUCCESS,
hash: message.hash,
name: message.name,
data: data || {},
response: data || {},
target: target
});
} catch (err) {
Expand Down Expand Up @@ -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);
}
};

Expand Down

0 comments on commit d7d84ad

Please # to comment.