From ea58d17b9ccee5b102f75125d16444dbc61b77b2 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 12 May 2020 00:13:55 -0400 Subject: use db transaction for lightning receive --- routes/lightning/invoice.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'routes/lightning/invoice.js') diff --git a/routes/lightning/invoice.js b/routes/lightning/invoice.js index 3f4ab1db..3b453a73 100644 --- a/routes/lightning/invoice.js +++ b/routes/lightning/invoice.js @@ -3,17 +3,6 @@ module.exports = async (req, res) => { l.info("adding lightning invoice", req.user.username, amount, tip); - /* - const exists = await db.Invoice.findOne({ - where: { - [Op.or]: { - address: invoice.address || "undefined", - text: invoice.text - } - } - }); - */ - try { if (config.lna.clightning) { const invoice = await lnb.invoice(`${amount + tip}sat` || "any", new Date(), "", 360); -- cgit v1.2.3