diff options
| author | Adam Soltys <[email protected]> | 2025-02-04 17:30:14 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-02-04 17:30:14 +0000 |
| commit | 581fb404e212b5993fbec153a87e9b7bfd68d578 (patch) | |
| tree | d4f4f7d3368abf5cdf44c144da04b1d759ed5e9e /routes/payments.ts | |
| parent | 4f2e4ffdd5de8819abf2fe505fca4af12d3d7f6f (diff) | |
| download | coinos-server-581fb404e212b5993fbec153a87e9b7bfd68d578.tar.gz coinos-server-581fb404e212b5993fbec153a87e9b7bfd68d578.zip | |
log login failures
Diffstat (limited to 'routes/payments.ts')
| -rw-r--r-- | routes/payments.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/routes/payments.ts b/routes/payments.ts index 93e5d3da..1e035b3c 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -1,7 +1,7 @@ import config from "$config"; import api from "$lib/api"; import { requirePin } from "$lib/auth"; -import { db, g, s, t } from "$lib/db"; +import { db, g, s } from "$lib/db"; import { err, l, warn } from "$lib/logging"; import mqtt from "$lib/mqtt"; import { @@ -45,8 +45,6 @@ export default { const balance = await g(`balance:${user.id}`); try { - if (await g("freeze")) fail("Problem sending payment"); - if (typeof amount !== "undefined") { amount = parseInt(amount); if (amount < 0 || amount > SATS || Number.isNaN(amount)) @@ -405,7 +403,6 @@ export default { res.send(p); } catch (e) { - console.log(e); warn(user.username, "payment failed", e.message); res.code(500).send(e.message); } |
