mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-09-20 15:26:03 +08:00
Merge pull request #303 from louis-lau/webhooks-config-fix
Make webhooks config section optional
This commit is contained in:
commit
3c8f023ee1
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue