Skip to content

Commit

Permalink
fix: add origin payload to api response payload (#281)
Browse files Browse the repository at this point in the history
Fixes #278
  • Loading branch information
robertsLando authored Jan 20, 2021
1 parent 0d0fbd6 commit f241d85
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 f241d85

Please sign in to comment.