aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/payments.js')
-rw-r--r--lib/payments.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/payments.js b/lib/payments.js
index d0593447..cc8747d7 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -34,7 +34,7 @@ export let debit = async (
if (!amount || amount < 0) fail("Amount must be greater than zero");
- let ourfee = Math.round(amount * config.fee);
+ let ourfee = type === types.internal ? 0 : Math.round(amount * config.fee);
await t(`balance:${uid}`, async (balance, db) => {
await t(`credit:${type}:${uid}`, async (credit, db) => {
let covered = Math.min(credit, ourfee) || 0;