aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-24 23:51:08 -0700
committerAdam Soltys <[email protected]>2026-03-24 23:51:08 -0700
commit13372a9ee10a00ce3e17676198e97d2991b4855d (patch)
tree0169747d828db341382e412971f620e23b180f15
parent0a35dd4c1c19c28187bf770ed42c6af5e3b60bf8 (diff)
downloadcoinos-server-13372a9ee10a00ce3e17676198e97d2991b4855d.tar.gz
coinos-server-13372a9ee10a00ce3e17676198e97d2991b4855d.zip
don't remove missing payments
-rw-r--r--routes/payments.ts3
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;