From 6a479e02bfcd4187ccbbf2483f573257505825e3 Mon Sep 17 00:00:00 2001 From: Julien Debray <julien.debray@etu.hesge.ch> Date: Wed, 19 Apr 2023 14:12:56 +0200 Subject: [PATCH] Correction --- backend/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/App.js b/backend/src/App.js index 28bdd82d7..377e47fa5 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é."); }) -- GitLab