From e295b8d349c1206d270587ac282485777a7d80a5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 22 Feb 2024 17:50:13 +0000 Subject: don't freeze internal payments --- lib/payments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/payments.js b/lib/payments.js index 1d69c5b6..ff7052ca 100644 --- a/lib/payments.js +++ b/lib/payments.js @@ -36,7 +36,7 @@ export let debit = async ({ type = types.internal, rate, }) => { - if (await g("freeze")) fail("Problem sending payment"); + if (type !== types.internal && await g("freeze")) fail("Problem sending payment"); if (!user.unlimited && amount > 1000000) fail(`⚡️${amount} exceeds max withdrawal of ⚡️1,000,000`); let ref; -- cgit v1.2.3