diff options
| author | Adam Soltys <[email protected]> | 2023-02-27 19:29:35 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-27 19:29:38 -0800 |
| commit | ea794b2a1c7679bcd0e053ef623c234ad3700fb0 (patch) | |
| tree | c22ea57cec8491778953615eb4c7f52e2d018dd0 /lib/webhooks.js | |
| parent | 56d1bb6cde1f0ce8cac330f4fd68670312141af8 (diff) | |
| download | coinos-server-ea794b2a1c7679bcd0e053ef623c234ad3700fb0.tar.gz coinos-server-ea794b2a1c7679bcd0e053ef623c234ad3700fb0.zip | |
invoice fixes
Diffstat (limited to 'lib/webhooks.js')
| -rw-r--r-- | lib/webhooks.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/webhooks.js b/lib/webhooks.js index c071eccb..1158fe9d 100644 --- a/lib/webhooks.js +++ b/lib/webhooks.js @@ -9,23 +9,18 @@ export const callWebhook = async (invoice, payment) => { let { address, received, text, webhook } = invoice; if (webhook) { - let { amount, confirmed, hash, memo, account } = payment; - let { asset } = account; - let secret = config.webhooks[webhook]; + let { amount, confirmed, hash, memo } = payment; l("calling webhook", webhook, amount, hash, address, text); let res = await got(webhook, { - headers: { "x-webhook": secret }, json: { address, amount, - asset, confirmed, hash, memo, received, - text, - webhook + text } }).res(); return res; |
