aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-01 23:41:09 +0000
committerAdam Soltys <[email protected]>2022-10-01 23:41:10 +0000
commitb8a395859b54fd749286e2a2e6cb9f30bd75b185 (patch)
tree18698a33102474097fa4e27834e7f4787a78d473 /lib
parentb5e85cde1015c2ffd5b25dec8f281089ff12b8d8 (diff)
downloadcoinos-server-b8a395859b54fd749286e2a2e6cb9f30bd75b185.tar.gz
coinos-server-b8a395859b54fd749286e2a2e6cb9f30bd75b185.zip
fix liquid receipts
Diffstat (limited to 'lib')
-rw-r--r--lib/webhooks.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/webhooks.js b/lib/webhooks.js
index 9964bb94..901bd264 100644
--- a/lib/webhooks.js
+++ b/lib/webhooks.js
@@ -5,7 +5,7 @@ import { l } from "$lib/logging";
export const callWebhook = (invoice, payment) => {
if (!invoice || !payment) return;
- let { address, text, webhook } = invoice;
+ let { address, received, text, webhook } = invoice;
if (webhook) {
let { amount, confirmed, hash, memo, account } = payment;
@@ -18,11 +18,12 @@ export const callWebhook = (invoice, payment) => {
.url(webhook)
.post({
address,
- asset,
amount,
+ asset,
+ confirmed,
hash,
memo,
- confirmed,
+ received,
text,
webhook
})