mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-02-26 00:45:58 +08:00
Make webhooks config section optional
This commit is contained in:
parent
da8f5bc7d5
commit
4e5d5380d2
1 changed files with 1 additions and 1 deletions
|
@ -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