aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/payments.js')
-rw-r--r--lib/payments.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/payments.js b/lib/payments.js
index 82a26824..20429864 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -32,7 +32,7 @@ export let debit = async (
memo,
user,
type = types.internal,
- id = v4()
+ id = v4(),
) => {
let ref;
let { id: uid, currency, username } = user;
@@ -70,7 +70,7 @@ export let debit = async (
amount || 0,
tip || 0,
fee || 0,
- ourfee || 0
+ ourfee || 0,
);
if (r !== "ok") fail("Insufficient funds");
@@ -187,7 +187,7 @@ export let credit = async (hash, amount, memo, ref, type = types.internal) => {
sats:
"⚡️" +
new Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(
- p.amount
+ p.amount,
),
link: `${process.env.URL}/payment/${p.id}`,
});
@@ -195,12 +195,12 @@ export let credit = async (hash, amount, memo, ref, type = types.internal) => {
mqtt1.publish(
username,
- `pay:${p.amount}:${p.tip}:${p.rate}:${p.created}:${p.id}`
+ `pay:${p.amount}:${p.tip}:${p.rate}:${p.created}:${p.id}`,
);
mqtt2.publish(
username,
- `pay:${p.amount}:${p.tip}:${p.rate}:${p.created}:${p.id}`
+ `pay:${p.amount}:${p.tip}:${p.rate}:${p.created}:${p.id}`,
);
return p;