diff options
| author | Adam Soltys <[email protected]> | 2024-02-22 17:50:13 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-02-22 17:50:13 +0000 |
| commit | e295b8d349c1206d270587ac282485777a7d80a5 (patch) | |
| tree | 61a37c1c19b056d5b1b8c0db7106c59beba4af4b /lib | |
| parent | 187febfe9d2525d8e9b3436225267f0f0b0d509b (diff) | |
| download | coinos-server-e295b8d349c1206d270587ac282485777a7d80a5.tar.gz coinos-server-e295b8d349c1206d270587ac282485777a7d80a5.zip | |
don't freeze internal payments
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/payments.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
