From b8a395859b54fd749286e2a2e6cb9f30bd75b185 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 1 Oct 2022 23:41:09 +0000 Subject: fix liquid receipts --- lib/webhooks.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') 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 }) -- cgit v1.2.3