Merge pull request #303 from louis-lau/webhooks-config-fix

Make webhooks config section optional
This commit is contained in:
Andris Reinman 2020-12-28 16:37:29 +02:00 committed by GitHub
commit 3c8f023ee1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ async function postWebhook(webhook, data) {
}
module.exports.start = callback => {
if (!config.webhooks.enabled) {
if (!(config.webhooks && config.webhooks.enabled)) {
return setImmediate(() => callback(null, false));
}