diff options
| author | Adam Soltys <[email protected]> | 2022-09-02 15:06:43 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-02 15:06:43 -0700 |
| commit | d1cc66d1a02b75f90fbf0c05910777c76228259a (patch) | |
| tree | 7b93dc6a2fc0ec9d03676d6b4093fedf9733f128 /lib/webhooks.js | |
| parent | 3161dd7ee95b6c7d70f8341298dd4fab84cda8b0 (diff) | |
| download | coinos-server-d1cc66d1a02b75f90fbf0c05910777c76228259a.tar.gz coinos-server-d1cc66d1a02b75f90fbf0c05910777c76228259a.zip | |
es6 migration
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) |
