This commit is contained in:
Overtorment 2019-01-06 13:37:37 +00:00
parent 4f345b20a8
commit 6a57559b16

View File

@ -116,8 +116,6 @@ router.post('/payinvoice', async function(req, res) {
let userBalance = await u.getBalance(); let userBalance = await u.getBalance();
try {
// TODO: refactor
lightning.decodePayReq({ pay_req: req.body.invoice }, async function(err, info) { lightning.decodePayReq({ pay_req: req.body.invoice }, async function(err, info) {
if (err) return errorNotAValidInvoice(res); if (err) return errorNotAValidInvoice(res);
@ -188,9 +186,6 @@ router.post('/payinvoice', async function(req, res) {
return errorNotEnougBalance(res); return errorNotEnougBalance(res);
} }
}); });
} catch (Err) {
return errorLnd(res);
}
}); });
router.get('/getbtc', async function(req, res) { router.get('/getbtc', async function(req, res) {