diff options
| author | Adam Soltys <[email protected]> | 2022-09-13 10:10:10 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-13 10:10:10 -0700 |
| commit | 1752bb585d3cc00c7bd57dee9ba7b84d945d79de (patch) | |
| tree | f68cbfe5741b96c17ad9c8818656b6ed7f581876 /routes/lnurl.js | |
| parent | 75c2cd0391158aeaf9d0f9b4f0e56edc825bf667 (diff) | |
| parent | f62d5b5c6233510576df0e934d422395b9957833 (diff) | |
| download | coinos-server-1752bb585d3cc00c7bd57dee9ba7b84d945d79de.tar.gz coinos-server-1752bb585d3cc00c7bd57dee9ba7b84d945d79de.zip | |
Merge branch 'prod'
Diffstat (limited to 'routes/lnurl.js')
| -rw-r--r-- | routes/lnurl.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js index a0d2a6d0..6eab008a 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -22,6 +22,8 @@ import { conversionFeeReceiver } from "./lightning/conversionFee.js"; +import send from "$lib/send"; + const logins = persist("data/logins.json"); const recipients = persist("data/recipients.json"); const lnurlPayments = persist("data/payments.json"); @@ -196,6 +198,7 @@ app.post("/pay", auth, async (req, res, next) => { if (recipients[secret]) { url = `${req.protocol}://${req.get("host")}/api/send`; + console.log(url); const { data } = await axios.post( url, { @@ -216,6 +219,7 @@ app.post("/pay", auth, async (req, res, next) => { res.send(await send(amount, "", data.pr, user)); } } catch (e) { + console.log(e); err("failed to send payment", e.message); res.code(500).send(e.message); } |
