Skip to content

Commit

Permalink
fix(rpc/handler): make payload null in reply when payload not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
CheerlessCloud committed Sep 28, 2018
1 parent 69ee40b commit 60005b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/Handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class RpcHandler {
replyTo,
{
error: errorToObject(error),
payload,
payload: payload === undefined ? null : payload,
},
{ messageId, correlationId },
);
Expand Down

0 comments on commit 60005b6

Please sign in to comment.