From ab552d882ba9c0d2c99e104c79b2ce854c4d1da8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 19 Oct 2024 22:02:28 -0700 Subject: fix reverse --- lib/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/db.ts') diff --git a/lib/db.ts b/lib/db.ts index 50c78e85..053ecefb 100644 --- a/lib/db.ts +++ b/lib/db.ts @@ -38,7 +38,7 @@ local pid = KEYS[6] local total = tonumber(ARGV[1]) local credit = tonumber(ARGV[2]) -local payment = cjson.decode(redis.call('get', paymentKey)) +local payment = redis.call('get', paymentKey) if payment ~= nil then redis.call('incrby', balanceKey, total) -- cgit v1.2.3