Skip to content

Commit

Permalink
fix: add origin payload to api response payload
Browse files Browse the repository at this point in the history
Fixes #278
  • Loading branch information
robertsLando committed Jan 20, 2021
1 parent 0d0fbd6 commit d9c6164
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ async function onApiRequest (topic, apiName, payload) {
} else {
result = {
success: false,
message: 'Args must be an array'
message: 'Args must be an array',
origin: payload
}
}
this.mqtt.publish(topic, result, { retain: false })
Expand Down

0 comments on commit d9c6164

Please sign in to comment.