aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-03-05 15:50:51 -0800
committerAdam Soltys <[email protected]>2024-03-05 15:50:54 -0800
commit1abe718e4bf88527662a1b18a9a27b55b5c44d79 (patch)
treebf086384f8f87aed8ed7ce4971b04d19a8b1b989 /lib
parent33f98339b31a29f903d8fe1fa553d57cf5272961 (diff)
downloadcoinos-server-1abe718e4bf88527662a1b18a9a27b55b5c44d79.tar.gz
coinos-server-1abe718e4bf88527662a1b18a9a27b55b5c44d79.zip
checking for payments
Diffstat (limited to 'lib')
-rw-r--r--lib/migrate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/migrate.js b/lib/migrate.js
index f262903a..4a44ea87 100644
--- a/lib/migrate.js
+++ b/lib/migrate.js
@@ -73,8 +73,8 @@ async function migrate(id) {
let pid;
while ((pid = await archive.rPop(`${id}:payments`))) {
let p = await ga(`payment:${pid}`);
- let pos = await db.lPos(`${id}:payments`, pid)
- if (!p || pos !== "nil") continue;
+ let pos = await db.lPos(`${id}:payments`, pid);
+ if (!p || pos) continue;
if (p.type === types.internal && p.ref) {
let recipient = await g(`user:${p.ref}`);
if (!recipient) queued[p.ref] = true;