diff options
| author | Adam Soltys <[email protected]> | 2022-11-03 15:36:47 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-03 15:36:47 -0700 |
| commit | d06acb3b41c76e0de47176f394c008fe68d25a2a (patch) | |
| tree | f921659106133d43b80f0c6c0b88c490946775fc /routes | |
| parent | 4f5a5014cc097dc8a30f691bd49bf5055708a5e9 (diff) | |
| download | coinos-server-d06acb3b41c76e0de47176f394c008fe68d25a2a.tar.gz coinos-server-d06acb3b41c76e0de47176f394c008fe68d25a2a.zip | |
record tip for internal payments
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); |
