diff options
Diffstat (limited to 'lib/webhooks.ts')
| -rw-r--r-- | lib/webhooks.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/webhooks.ts b/lib/webhooks.ts index b1f035a4..2a888991 100644 --- a/lib/webhooks.ts +++ b/lib/webhooks.ts @@ -6,13 +6,13 @@ export const callWebhook = async (invoice, payment) => { try { if (!invoice || !payment) return; - let { address, received, text, webhook, secret } = invoice; + const { address, received, text, webhook, secret } = invoice; if (webhook) { - let { amount, confirmed, hash, memo } = payment; + const { amount, confirmed, hash, memo } = payment; l("calling webhook", webhook, amount, hash, address, text); - let res = await got.post(webhook, { + const res = await got.post(webhook, { json: { address, amount, @@ -23,7 +23,7 @@ export const callWebhook = async (invoice, payment) => { text, secret, }, - https: { rejectUnauthorized: false } + https: { rejectUnauthorized: false }, }); return res; } |
