diff options
| author | Adam Soltys <[email protected]> | 2022-12-15 13:35:30 -0800 |
|---|---|---|
| committer | John Barratt <[email protected]> | 2022-12-19 11:25:54 -0800 |
| commit | a53540dc5f96042acc48ff70c470c1d206765a6a (patch) | |
| tree | ed5efffc57fa3a5d817a5f55a156a100217bca01 /lib/utils.js | |
| parent | 1b807a117871bd6b1e6897f8bd197b27422bb18f (diff) | |
| download | coinos-server-a53540dc5f96042acc48ff70c470c1d206765a6a.tar.gz coinos-server-a53540dc5f96042acc48ff70c470c1d206765a6a.zip | |
rebase on conversions
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 8 |
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; }; |
