aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-15 13:35:30 -0800
committerAdam Soltys <[email protected]>2022-12-15 13:35:30 -0800
commit1ac8f4279e0e53e2d4e18b59ff4b54acee2d2c57 (patch)
tree7c95dfb6e60bcc8b5cd758b86f21b2a3e18efe7d /lib/utils.js
parente8525c6b4402346b5e19d7dd40d79e076a95941f (diff)
downloadcoinos-server-1ac8f4279e0e53e2d4e18b59ff4b54acee2d2c57.tar.gz
coinos-server-1ac8f4279e0e53e2d4e18b59ff4b54acee2d2c57.zip
prettier
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils.js b/lib/utils.js
index c9670339..45e50243 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -166,8 +166,8 @@ export const derivePayRequest = async ({ amount, memo, tip }) => {
if (!tip) tip = 0;
let value = amount + tip;
- if (!memo) memo = "coinos";
- return (
- await ln.invoice(value ? `${value}sat` : "any", new Date(), memo, 360)
- ).bolt11;
+ if (!memo) memo = "coinos";
+ return (
+ await ln.invoice(value ? `${value}sat` : "any", new Date(), memo, 360)
+ ).bolt11;
};