diff options
| author | Adam Soltys <[email protected]> | 2022-10-05 12:15:48 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-05 12:15:48 -0700 |
| commit | fb91aa048617f0894e01c1e890ec957a3170539f (patch) | |
| tree | 5630fbe3bb5eb67fc0fba2bba79b8b763609d93a /lib/sendInternal.js | |
| parent | 160d95f693d7d8a17e864313b06790a841d4e160 (diff) | |
| download | coinos-server-fb91aa048617f0894e01c1e890ec957a3170539f.tar.gz coinos-server-fb91aa048617f0894e01c1e890ec957a3170539f.zip | |
prettier
Diffstat (limited to 'lib/sendInternal.js')
| -rw-r--r-- | lib/sendInternal.js | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/sendInternal.js b/lib/sendInternal.js index 80701ca3..fbe4d95f 100644 --- a/lib/sendInternal.js +++ b/lib/sendInternal.js @@ -10,15 +10,11 @@ import { sendLiquid } from "$routes/liquid/send"; import { l, err } from "$lib/logging"; import { fail } from "$lib/utils"; -export default async ({ - amount, - address, - payreq, - unconfidential, - asset, - memo, - username, -}, hostname, user) => { +export default async ( + { amount, address, payreq, unconfidential, asset, memo, username }, + hostname, + user +) => { amount = parseInt(amount); if (!asset) asset = config.liquid.btcasset; @@ -209,9 +205,8 @@ export default async ({ l("received internal", recipient.username, amount); notify(recipient, `Received ${amount} ${a2.ticker} sats`); callWebhook(invoice, p2); - } - return payment; + return payment; }); }; |
