From 814e6d2883613f896ef2823cc204b9f18b1ad3f2 Mon Sep 17 00:00:00 2001 From: Haidar <16521522@mahasiswa.itb.ac.id> Date: Fri, 17 Nov 2023 14:58:11 +0700 Subject: [PATCH] feat: fix bug mney convert --- controllers/moneyController.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/moneyController.js b/controllers/moneyController.js index 3932726..f238807 100644 --- a/controllers/moneyController.js +++ b/controllers/moneyController.js @@ -70,10 +70,10 @@ exports.convertMoney = (req, res) => { const amounts = req.body.amount; - if (typeof amounts !== 'number' || !Number.isInteger(amounts) || amounts > 1000000 || amounts < 0) { - res.json({ success: false, message: "Invalid amount" }); - return; - } + // if (typeof amounts !== 'number' || !Number.isInteger(amounts) || amounts > 1000000 || amounts < 0) { + // res.json({ success: false, message: "Invalid amount" }); + // return; + // } let username = req.username; const query = 'SELECT * FROM users WHERE username = ?'; -- GitLab