diff options
| author | Adam Soltys <[email protected]> | 2024-10-31 09:29:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-31 09:34:42 -0700 |
| commit | aa4cd39c943b67169def224e224bd07b815b70ec (patch) | |
| tree | 2af857ac971705f4d20eb017864f0365d0b57ea6 /lib/webhooks.ts | |
| parent | bc9c04f6519f32d3b444d4df0b276eba960480a9 (diff) | |
| download | coinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.tar.gz coinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.zip | |
biome lint
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; } |
