diff options
| author | Adam Soltys <[email protected]> | 2026-03-24 23:51:08 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-24 23:51:08 -0700 |
| commit | 13372a9ee10a00ce3e17676198e97d2991b4855d (patch) | |
| tree | 0169747d828db341382e412971f620e23b180f15 | |
| parent | 0a35dd4c1c19c28187bf770ed42c6af5e3b60bf8 (diff) | |
| download | coinos-server-13372a9ee10a00ce3e17676198e97d2991b4855d.tar.gz coinos-server-13372a9ee10a00ce3e17676198e97d2991b4855d.zip | |
don't remove missing payments
| -rw-r--r-- | routes/payments.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/routes/payments.ts b/routes/payments.ts index 6265d54e..1845512c 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -133,8 +133,7 @@ export default { const p = await gf(`payment:${pid}`); if (!p) { warn("user", id, "missing payment", pid); - await db.lRem(listKey, 0, pid); - return p; + return; } if (received && p.amount < 0) return; if (p.created < start || p.created > end) return; |
