From ece2e424fb00a5480b1cf0630ee6c237ec1c170a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 5 Dec 2023 04:05:02 +0000 Subject: logs --- lib/payments.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/payments.js') diff --git a/lib/payments.js b/lib/payments.js index 5152806a..8d7a7ff0 100644 --- a/lib/payments.js +++ b/lib/payments.js @@ -23,7 +23,7 @@ export const types = { bitcoin: "bitcoin", lightning: "lightning", fund: "fund", - classic: "classic" + classic: "classic", }; export let debit = async ( @@ -91,7 +91,7 @@ export let debit = async ( type, ref, tip, - created: Date.now() + created: Date.now(), }; await s(`payment:${id}`, p); @@ -153,7 +153,7 @@ export let credit = async (hash, amount, memo, ref, type = types.internal) => { tip, type, confirmed: true, - created: Date.now() + created: Date.now(), }; if (type === types.bitcoin) invoice.pending += amount; @@ -291,7 +291,7 @@ export let payLightning = async (user, payreq, amount, maxfee, memo) => { bolt11: payreq.replace(/\s/g, "").toLowerCase(), amount_msat: amount_msat ? undefined : amount * 1000, maxfee: maxfee * 1000, - retry_for: 5 + retry_for: 5, }); if (!(r.status === "complete" && r.payment_preimage)) -- cgit v1.2.3