mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
fix: only report webhook error if there is an error
This commit is contained in:
parent
616574d438
commit
1484f8afe3
1 changed files with 5 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue