fix: only report webhook error if there is an error
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user