aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-17 11:34:53 -0700
committerAdam Soltys <[email protected]>2024-10-17 11:34:53 -0700
commitdd52d07a513c4c98197b36eb48e213a0b2164d32 (patch)
tree645a4a185585093c4ce8b61e9e4cad126226bdb5 /routes
parent70d752642c7faa786f45e90c2afaf348efe4310d (diff)
downloadcoinos-server-dd52d07a513c4c98197b36eb48e213a0b2164d32.tar.gz
coinos-server-dd52d07a513c4c98197b36eb48e213a0b2164d32.zip
rm payment from list
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/payments.ts b/routes/payments.ts
index 5eb802bc..33f66e8d 100644
--- a/routes/payments.ts
+++ b/routes/payments.ts
@@ -95,6 +95,7 @@ export default {
let p = await g(`payment:${pid}`);
if (!p) {
warn("user", id, "missing payment", pid);
+ await db.lRem(`${aid || id}:payments`, 0, pid);
return p;
}
if (p.created < start || p.created > end) return;