Skip to content

Commit

Permalink
Support info.config for webhook callbacks
Browse files Browse the repository at this point in the history
6.8.1 no longer sends the entire base config via the webhook payload. Adjusted the script to read the config from the node info parameter.
  • Loading branch information
martinrode committed Dec 21, 2023
1 parent 52f93cb commit 81dd9d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/db_pre_save+webhook/set_comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ process.stdin.on('end', () => {
if (!data.info) {
data.info = {}
}
// when we receive the payload from a webook, the config is not included
if (!data.info.config && info?.config) {
data.info.config = info.config
}
} catch(e) {
console.error(`Could not parse input: ${e.message}`, e.stack);
process.exit(1);
Expand Down

0 comments on commit 81dd9d0

Please sign in to comment.