diff --git a/backend/src/App.js b/backend/src/App.js index 28bdd82d72199d836badb5c2f70fd63fa34b4f61..377e47fa546a49c1ea1c01ee3fb9b87180da329a 100644 --- a/backend/src/App.js +++ b/backend/src/App.js @@ -146,7 +146,7 @@ app.post('/client', (req, res) => { }) app.post('/modification', (req, res) => { - db.executeQuery("UPDATE Client SET Nom = '"+ req.body.nom + "', Prenom = '" + req.body.prenom + "', Mail = '" + req.body.email + "', Password = '" + req.body.password + "', Taille = '" + req.body.taille + "', Poids = '" + req.body.poids + "', Pointure = '" + req.body.pointure + "', IsAdmin = '0' WHERE Id_Client = " + req.body.client_id) + db.executeQuery("UPDATE Client SET Nom = '"+ req.body.nom + "', Prenom = '" + req.body.prenom + "', Mail = '" + req.body.email + "', Password = '" + req.body.password + "', Taille = '" + req.body.taille + "', Poids = '" + req.body.poids + "', Pointure = '" + req.body.pointure + "' WHERE Id_Client = " + req.body.client_id) .then(() => { res.status(200).send("Le client à bien été modifié."); })