From 8d6f65079868ae6134f593752e3380180591623d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 9 Aug 2021 20:44:47 -0700 Subject: don't delete invoice on lnurl creation --- routes/lnurl.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/routes/lnurl.js b/routes/lnurl.js index adf4df7c..67f581d1 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -129,16 +129,6 @@ app.get( maxSendable = maxSendable || 1000000000; if (parseInt(amount)) minSendable = maxSendable = amount * 1000; - let invoices = await db.Invoice.findAll({ - where: { - amount - }, - order: [["id", "DESC"]], - limit: 1 - }); - - if (invoices.length) await invoices[0].destroy(); - try { const result = await lnurlServer.generateNewUrl("payRequest", { minSendable, -- cgit v1.2.3