diff options
| author | Adam Soltys <[email protected]> | 2021-08-09 20:44:47 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-08-09 20:44:47 -0700 |
| commit | 8d6f65079868ae6134f593752e3380180591623d (patch) | |
| tree | f58d851edbef5a68ba06d28d5a07439c3d54b9b6 | |
| parent | bcf89f097f9a62a2aeac70da17ab527b243e811a (diff) | |
| download | coinos-server-8d6f65079868ae6134f593752e3380180591623d.tar.gz coinos-server-8d6f65079868ae6134f593752e3380180591623d.zip | |
don't delete invoice on lnurl creation
| -rw-r--r-- | routes/lnurl.js | 10 |
1 files changed, 0 insertions, 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, |
