diff options
| author | Adam Soltys <[email protected]> | 2024-03-05 15:50:51 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-03-05 15:50:54 -0800 |
| commit | 1abe718e4bf88527662a1b18a9a27b55b5c44d79 (patch) | |
| tree | bf086384f8f87aed8ed7ce4971b04d19a8b1b989 /lib | |
| parent | 33f98339b31a29f903d8fe1fa553d57cf5272961 (diff) | |
| download | coinos-server-1abe718e4bf88527662a1b18a9a27b55b5c44d79.tar.gz coinos-server-1abe718e4bf88527662a1b18a9a27b55b5c44d79.zip | |
checking for payments
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/migrate.js | 4 |
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; |
