diff options
| author | Adam Soltys <[email protected]> | 2025-02-12 21:36:34 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-02-12 21:36:34 +0000 |
| commit | 7e8a215826a2bc83728cf9c017e5960aac38c0b0 (patch) | |
| tree | a2d46dd6ddfaaa772ad8777f41c8ebd485502ed8 /routes | |
| parent | c8cdd168b5504b2572a193d64b57f67a5f97a35c (diff) | |
| download | coinos-server-7e8a215826a2bc83728cf9c017e5960aac38c0b0.tar.gz coinos-server-7e8a215826a2bc83728cf9c017e5960aac38c0b0.zip | |
nwc refactor
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/invoices.ts | 2 | ||||
| -rw-r--r-- | routes/payments.ts | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/routes/invoices.ts b/routes/invoices.ts index 79f7b8f1..8b71208d 100644 --- a/routes/invoices.ts +++ b/routes/invoices.ts @@ -31,7 +31,7 @@ export default { try { res.send(await generate({ invoice, user })); } catch (e) { - err("problem generating invoice", e.message); + err("problem generating invoice", req.user?.username, body.user?.username, e.message); bail(res, e.message); } }, diff --git a/routes/payments.ts b/routes/payments.ts index 1e035b3c..9282723a 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -238,6 +238,7 @@ export default { const { params: { name }, } = req; + fail("disabled"); const balance = await g(`fund:${name}`); res.send({ tag: "withdrawRequest", @@ -255,6 +256,7 @@ export default { user, } = req; try { + fail("disabled"); const { id: uid } = user; amount = parseInt(amount); if (amount < 0) fail("Invalid amount"); @@ -290,8 +292,7 @@ export default { res.send({ payment }); } catch (e) { - console.log(e); - warn("problem withdrawing from fund", e.message); + warn("problem withdrawing from fund", user.username, e.message); bail(res, e.message); } }, |
