aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sync.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-06-29 09:51:51 -0400
committerAdam Soltys <[email protected]>2022-07-05 12:03:57 -0700
commit324b9e1faddee662fe968c148f390d8833a796d9 (patch)
tree94a78ebf2ded04077f9d4ed6a23e3e9273701bd2 /lib/sync.js
parent135c5766061f753eaa4ed9394493ecbf938e458c (diff)
downloadcoinos-server-324b9e1faddee662fe968c148f390d8833a796d9.tar.gz
coinos-server-324b9e1faddee662fe968c148f390d8833a796d9.zip
ignore keysend payments
Diffstat (limited to 'lib/sync.js')
-rw-r--r--lib/sync.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sync.js b/lib/sync.js
index 18ca5186..f7dfd3c0 100644
--- a/lib/sync.js
+++ b/lib/sync.js
@@ -90,6 +90,7 @@ const sync = async () => {
let missed = recent.filter(i => !settled.includes(i.preimage));
for (let i = 0; i < missed.length; i++) {
let { amount, preimage, pr: text, createdAt } = missed[i];
+ if (!text.length) continue;
try {
let invoice = await db.Invoice.findOne({