fix: only report webhook error if there is an error

This commit is contained in:
Blade Barringer 2016-09-14 12:51:50 -05:00
parent 616574d438
commit 1484f8afe3

View file

@ -8,7 +8,11 @@ let _sendWebhook = (url, body) => {
url,
body,
json: true,
}, (err) => logger.error(err));
}, (err) => {
if (err) {
logger.error(err);
}
});
};
let _isInvalidWebhook = (hook) => {