From 9efaa2d518ad6bed570826e4f0e4406124060ec1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 13 May 2025 13:28:24 -0700 Subject: blacklist only applies to frozen --- lib/payments.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/payments.ts b/lib/payments.ts index e3a2e0de..9c9f1794 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -60,8 +60,7 @@ export const debit = async ({ const userLimit = await g("limit"); const frozen = (await g("hardfreeze")) || - ((await g("freeze")) && type !== PaymentType.internal) || - blacklisted; + ((await g("freeze")) && type !== PaymentType.internal); if (frozen || (amount > userLimit && !whitelisted) || amount > serverLimit) { warn( @@ -120,7 +119,8 @@ export const debit = async ({ : 0; if (aid && aid !== uid) ourfee = 0; - const frozenBalance = (!blacklisted || whitelisted) ? 0 : await ga(`balance:${uid}`); + const frozenBalance = + !blacklisted || whitelisted ? 0 : await ga(`balance:${uid}`); ourfee = await db.debit( `balance:${aid || uid}`, -- cgit v1.2.3