From f4b642f3b29d872dda62fb2ef920e0a842056019 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Tue, 20 Oct 2020 21:07:26 +0100 Subject: [PATCH] FIX: undefined amount in pushes to groundcontrol when paying internal invoice --- controllers/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/api.js b/controllers/api.js index 2c59a58..8ae1cea 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -253,7 +253,7 @@ router.post('/payinvoice', async function(req, res) { memo: info.description, r_preimage: Buffer.from(preimage, 'hex'), r_hash: Buffer.from(info.payment_hash, 'hex'), - amt_paid_sat: +info.num_satoshis, + value: +info.num_satoshis, }); } await lock.releaseLock();