diff options
| author | Adam Soltys <[email protected]> | 2022-11-03 15:37:25 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-03 15:37:25 -0700 |
| commit | ff972ac2d38432583400cbd3fc4c2946789744d8 (patch) | |
| tree | 7135e3421801120c7c5d2bad046ea8b8f949df13 /routes | |
| parent | 2149f6abb07fb933f5f6e081147d43e17accb57c (diff) | |
| parent | d06acb3b41c76e0de47176f394c008fe68d25a2a (diff) | |
| download | coinos-server-ff972ac2d38432583400cbd3fc4c2946789744d8.tar.gz coinos-server-ff972ac2d38432583400cbd3fc4c2946789744d8.zip | |
Merge branch 'master' into prod
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/invoices.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/invoices.js b/routes/invoices.js index 16abab84..6e0fe358 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -64,7 +64,7 @@ app.post("/invoice", optionalAuth, async (req, res, next) => { let address, unconfidential, text; if (amount < 0) throw new Error("amount out of range"); - if (tip > 5 * amount || tip > 1000000 || tip < 0) + if (tip > 5 * amount || tip < 0) throw new Error("tip amount out of range"); if (!user) ({ user } = req); |
