From 34774759b233c1535c74a7f2783ffd40a542ab9d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 30 May 2025 19:30:19 +0000 Subject: track payments --- lib/db.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/db.ts') 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) -- cgit v1.2.3