diff options
Diffstat (limited to 'routes/lightning/send.js')
| -rw-r--r-- | routes/lightning/send.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routes/lightning/send.js b/routes/lightning/send.js index c5de7ece..ba88aaf6 100644 --- a/routes/lightning/send.js +++ b/routes/lightning/send.js @@ -1,3 +1,6 @@ +import { err } from "$lib/logging"; +import send from "$lib/send"; + export default async (req, res) => { let { amount, route, memo, payreq } = req.body; let { user } = req; @@ -5,6 +8,7 @@ export default async (req, res) => { try { res.send(await send(amount, memo, payreq, user)); } catch (e) { + console.log(e) err( "problem sending lightning payment", user.username, |
