diff options
Diffstat (limited to 'lib/webhooks.js')
| -rw-r--r-- | lib/webhooks.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/webhooks.js b/lib/webhooks.js index ccebc024..c0919b59 100644 --- a/lib/webhooks.js +++ b/lib/webhooks.js @@ -1,6 +1,4 @@ -import wretch from 'wretch'; -import fetch from 'node-fetch'; -wretch().polyfills({ fetch }); +import wretch from './wretch.js'; export const callWebhook = (invoice, payment) => { if (!invoice || !payment) return; @@ -12,7 +10,7 @@ export const callWebhook = (invoice, payment) => { let { asset } = account; let secret = config.webhooks[webhook]; - l.info("calling webhook", webhook, amount, hash, address, text); + l("calling webhook", webhook, amount, hash, address, text); return wretch() .headers({ "x-webhook": secret }) .url(webhook) |
