aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-05-13 13:28:24 -0700
committerAdam Soltys <[email protected]>2025-05-13 13:28:24 -0700
commit9efaa2d518ad6bed570826e4f0e4406124060ec1 (patch)
tree88bfe40d8ec235c8fc5771d43e3bb4a2ee39219f
parentbc54c2d5cfa150c2098011f9900503a0333657d0 (diff)
downloadcoinos-server-9efaa2d518ad6bed570826e4f0e4406124060ec1.tar.gz
coinos-server-9efaa2d518ad6bed570826e4f0e4406124060ec1.zip
blacklist only applies to frozen
-rw-r--r--lib/payments.ts6
1 files changed, 3 insertions, 3 deletions
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}`,