Skip to content
Snippets Groups Projects
Commit 6a479e02 authored by julien.debray's avatar julien.debray
Browse files

Correction

parent d31e90b5
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,7 @@ app.post('/client', (req, res) => { ...@@ -146,7 +146,7 @@ app.post('/client', (req, res) => {
}) })
app.post('/modification', (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(() => { .then(() => {
res.status(200).send("Le client à bien été modifié."); res.status(200).send("Le client à bien été modifié.");
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment