From c60ad34877c44760263a9e93e99aa425ad0fdd99 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 8 Sep 2022 19:29:04 -0400 Subject: missing imports --- routes/lightning/send.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'routes/lightning/send.js') 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, -- cgit v1.2.3