Skip to content

Commit

Permalink
fix: setup wasn't merging existing admin webhook config
Browse files Browse the repository at this point in the history
this file is a goddam nightmare
  • Loading branch information
tycrek committed Dec 26, 2022
1 parent 3322078 commit b40335b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function doSetup() {
const existingConfig = require('../config.json');
Object.entries(existingConfig).forEach(([key, value]) => {
Object.prototype.hasOwnProperty.call(config, key) && (config[key] = value); // skipcq: JS-0093
Object.prototype.hasOwnProperty.call(adminWebhookConfig, key) && (adminWebhookConfig[key] = value); // skipcq: JS-0093
Object.prototype.hasOwnProperty.call(s3config, key) && (s3config[key] = value); // skipcq: JS-0093
Object.prototype.hasOwnProperty.call(oldConfig, key) && (oldConfig[key] = value); // skipcq: JS-0093
});
Expand Down

0 comments on commit b40335b

Please # to comment.