From f6ff5156b66efbb51ba046e37de65b466585124a Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Wed, 24 Aug 2022 19:51:31 -0400 Subject: remove duplicate elements and format --- src/routes/invoice/+server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/routes/invoice/+server.js') diff --git a/src/routes/invoice/+server.js b/src/routes/invoice/+server.js index 4b961be9..3942904b 100644 --- a/src/routes/invoice/+server.js +++ b/src/routes/invoice/+server.js @@ -10,7 +10,7 @@ export async function POST({ request }) { ({ text } = await post('/lightning/invoice', { amount }, headers)); let invoice = { amount, currency, network, rate, tip, text }; - let { uuid } = await post('/invoice', { invoice, user: { username } }, headers); + let { uuid } = await post('/invoice', { invoice, user: { username } }, headers); return new Response(JSON.stringify(uuid), { headers: { 'content-type': 'application/json' } }); } -- cgit v1.2.3