aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lnurl.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-09 20:55:17 -0700
committerAdam Soltys <[email protected]>2021-08-09 20:55:17 -0700
commit56559c7b9749fe62fe2fe0ba90725391d83b8bf7 (patch)
tree48d6a0630d05d6787b4410708a5efceff472636b /routes/lnurl.js
parent803ecab2b5c3a00d107372ea6757cd6ce0f8224d (diff)
parent8d6f65079868ae6134f593752e3380180591623d (diff)
downloadcoinos-server-56559c7b9749fe62fe2fe0ba90725391d83b8bf7.tar.gz
coinos-server-56559c7b9749fe62fe2fe0ba90725391d83b8bf7.zip
Merge branch 'v1.0.0'
Diffstat (limited to 'routes/lnurl.js')
-rw-r--r--routes/lnurl.js10
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,