aboutsummaryrefslogtreecommitdiffstats
path: root/lib/db.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-05-30 19:30:19 +0000
committerAdam Soltys <[email protected]>2025-05-30 19:30:20 +0000
commit34774759b233c1535c74a7f2783ffd40a542ab9d (patch)
treec706cd20bc50274c0124fbdc736f090136ff37ce /lib/db.ts
parent567512dd152616667e641f6f0395c2635e1159dd (diff)
downloadcoinos-server-34774759b233c1535c74a7f2783ffd40a542ab9d.tar.gz
coinos-server-34774759b233c1535c74a7f2783ffd40a542ab9d.zip
track payments
Diffstat (limited to 'lib/db.ts')
-rw-r--r--lib/db.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/db.ts b/lib/db.ts
index 762afa41..56921adb 100644
--- a/lib/db.ts
+++ b/lib/db.ts
@@ -48,6 +48,7 @@ if redis.call('exists', paymentKey) == 1 then
redis.call('incrby', creditKey, credit)
redis.call('del', hashKey)
redis.call('lrem', paymentsKey, 0, pid)
+ redis.call('lrem', 'payments', 0, pid)
return pid
else
error("Payment has already been reversed" .. paymentKey)