diff options
| author | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
| commit | ad7b09b43323d0ffc0a8ddabb43e4838a184c697 (patch) | |
| tree | fbf2a59f81771b2938f474c8e7b35a497d2960e4 /routes/invoices.ts | |
| parent | 9e97e040617bfa0b40150c0eba298bf186bbeeaf (diff) | |
| download | coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.tar.gz coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.zip | |
formatting
Diffstat (limited to 'routes/invoices.ts')
| -rw-r--r-- | routes/invoices.ts | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/routes/invoices.ts b/routes/invoices.ts index bc96c3f0..7f44a28d 100644 --- a/routes/invoices.ts +++ b/routes/invoices.ts @@ -42,12 +42,7 @@ export default { } catch (e) { console.trace(); console.log(e); - err( - "problem generating invoice", - req.user?.username, - body.user?.username, - e.message, - ); + err("problem generating invoice", req.user?.username, body.user?.username, e.message); bail(res, e.message); } }, @@ -84,9 +79,7 @@ export default { async list(req, res) { const { id } = req.user; let invoices = await db.lRange(`${id}:invoices`, 0, -1); - invoices = (await Promise.all(invoices.map((i) => getInvoice(i)))).filter( - Boolean, - ); + invoices = (await Promise.all(invoices.map((i) => getInvoice(i)))).filter(Boolean); res.send(invoices); }, @@ -95,8 +88,7 @@ export default { const { address, message, type = "bitcoin" } = req.body; const node = rpc(config[type]); - if (config[type].walletpass) - await node.walletPassphrase(config[type].walletpass, 300); + if (config[type].walletpass) await node.walletPassphrase(config[type].walletpass, 300); const signature = await node.signMessage({ address, message }); res.send({ signature }); |
