diff options
| author | Adam Soltys <[email protected]> | 2023-03-14 23:57:41 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-03-14 23:57:41 -0700 |
| commit | 36539ce56cea91bf74a97557b127473bd659b924 (patch) | |
| tree | 6c8112790376fffadb8e0fc7046cdc5b4105ab5f | |
| parent | 3afce799436c67cf2f4d14b433d81810654d65b0 (diff) | |
| download | coinos-server-36539ce56cea91bf74a97557b127473bd659b924.tar.gz coinos-server-36539ce56cea91bf74a97557b127473bd659b924.zip | |
log failed payments
| -rw-r--r-- | routes/payments.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routes/payments.js b/routes/payments.js index 9d8d9883..62c5f737 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -35,9 +35,10 @@ catchUp(); export default { async create({ body, user }, res) { - try { let { amount, hash, maxfee, name, memo, payreq, username } = body; + try { + amount = parseInt(amount); maxfee = maxfee ? parseInt(maxfee) : 0; @@ -111,6 +112,7 @@ export default { res.send(p); } catch (e) { + warn("failed to create payment", username, amount, hash, payreq); bail(res, e.message); } }, |
