aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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
})