From adf35d736de2cd870e363abc28a0989158ea0b5b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 24 Jan 2023 14:46:46 -0800 Subject: move lnurl routes --- routes/lnurl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/lnurl.js') diff --git a/routes/lnurl.js b/routes/lnurl.js index cb1b75c5..63488033 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -3,7 +3,7 @@ import { l } from "$lib/logging"; import { fail } from "$lib/utils"; import { v4 } from "uuid"; import got from "got"; -import { invoice } from "$lib/invoices"; +import { generate } from "$lib/invoices"; import { bech32 } from "bech32"; export default { @@ -50,7 +50,7 @@ export default { let uid = await g(`lnurl:${id}`); let user = await g(`user:${uid}`); - ({ text: pr } = await invoice({ + ({ text: pr } = await generate({ invoice: { amount, type: types.lightning -- cgit v1.2.3