From b67ca07bac3a0cb78f9b3c19a783c3253f06c29f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 19 Dec 2023 14:37:18 -0800 Subject: biome --- lib/payments.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/payments.js') 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; -- cgit v1.2.3