diff --git a/back/src/controllers/administrateur.controller.js b/back/src/controllers/administrateur.controller.js index 0ff3b6d587ab1bf2eec731ade84ded82f5a2ac0f..2daa25c686c1e4a184f45c6d8037553b73425cb1 100644 --- a/back/src/controllers/administrateur.controller.js +++ b/back/src/controllers/administrateur.controller.js @@ -94,7 +94,6 @@ async function getUsers(req, res) { let result; const request = `query{searchUsers(name:"${req.query.userString}",limit:10){user{firstName,lastName,login}}}`; const query = `https://api.linkcs.fr/v1/graphql/?query=${encodeURIComponent(request)}`; - console.log(query) await fetch(query, { method: 'GET', headers: { @@ -112,7 +111,6 @@ async function getUsers(req, res) { res.send(err) }) if (result) { - console.log(result) return res.json(result.data.searchUsers.map(el => el.user)) } else { res.status(500); @@ -129,7 +127,6 @@ async function getUsersPerformance(req, res) { let result; const request = `query{searchUsers(name:"${req.query.userString}",limit:10){user{firstName,lastName,login}}}`; const query = `https://api.linkcs.fr/v1/graphql/?query=${encodeURIComponent(request)}`; - console.log(query) await fetch(query, { method: 'GET', headers: { @@ -147,7 +144,7 @@ async function getUsersPerformance(req, res) { res.send(err) }) if (result) { - console.log(result) + (result) return res.json(result.data.searchUsers.map(el => el.user)) } else { res.status(500); @@ -164,7 +161,6 @@ function simple_query(query, args) { var sql = mysql.format(query, args); connection.query(sql, function (error, results) { if (error) { - console.log('SQL ERROR') console.log(error) reject(error) } diff --git a/back/src/controllers/auth.controller.js b/back/src/controllers/auth.controller.js index 38e6f50bbc3ac4b577e1ab0b891029c843b64692..d55bf1499639c9b224edcb35bd1bf5fca1b7565c 100644 --- a/back/src/controllers/auth.controller.js +++ b/back/src/controllers/auth.controller.js @@ -60,9 +60,6 @@ async function getToken(code) { }) - - console.log(data); - req.on('error', err => { reject(err); }); diff --git a/back/src/controllers/staffeurs.controller.js b/back/src/controllers/staffeurs.controller.js index fc8b8cd99b5e909213dae22024eedd2c89e6dc30..4edf5d2e630d66c46d240cb1b78d48b861df6098 100644 --- a/back/src/controllers/staffeurs.controller.js +++ b/back/src/controllers/staffeurs.controller.js @@ -79,7 +79,6 @@ function simple_query(query, args) { var sql = mysql.format(query, args); connection.query(sql, function (error, results) { if (error) { - console.log('SQL ERROR') console.log(error) reject(error) } diff --git a/front_thomas/src/components/ListeAssociations.js b/front_thomas/src/components/ListeAssociations.js index e89e9ce319d2872a04eaa14b22a7ef7f0c1ef764..8f57494dbf98781f863f9bbbea8512ec46e77b67 100644 --- a/front_thomas/src/components/ListeAssociations.js +++ b/front_thomas/src/components/ListeAssociations.js @@ -11,8 +11,6 @@ export default function GetAssociations (props) { return () => clearInterval(interval); }, []); - console.log(associations) - var listeAssos = ""; associations.map((item) => listeAssos = listeAssos+item.equipe+" / " diff --git a/front_thomas/src/components/Login/Autocomplete/AddParticipantIfNotExists.js b/front_thomas/src/components/Login/Autocomplete/AddParticipantIfNotExists.js index 1de034be4c55111e4ada4543400d7b26b01ce40e..e6a9ee53d1653f152ab6b7754e0e41b2982569a2 100644 --- a/front_thomas/src/components/Login/Autocomplete/AddParticipantIfNotExists.js +++ b/front_thomas/src/components/Login/Autocomplete/AddParticipantIfNotExists.js @@ -16,10 +16,9 @@ const addParticipant = (props) => { }); }; -export default function AddIfNotExists(props) { +export default function AddIfNotExists(props) { if (!useIsParticipant(props)) { - console.log("hey !"); addParticipant(props); } diff --git a/front_thomas/src/components/Login/Gestion/gestionScore/AfficheScore.js b/front_thomas/src/components/Login/Gestion/gestionScore/AfficheScore.js index 017673d43873ec5cfc31bfbe20c764845aa09c4e..b9f42d0b9d2171ae5ce39c81a55f8f3191d41e93 100644 --- a/front_thomas/src/components/Login/Gestion/gestionScore/AfficheScore.js +++ b/front_thomas/src/components/Login/Gestion/gestionScore/AfficheScore.js @@ -104,8 +104,6 @@ export function UpdateScoreEquipe({ match }){ const [equipes,setEquipes] = useState([]); useEffect(() => {axios.get('/api/equipes').then((response) => setEquipes(response.data))}, []); - console.log(equipes); - const { register, handleSubmit } = useForm(); const onSubmit = data => {editEquipe(data)} diff --git a/front_thomas/src/components/Login/NewParticipant.js b/front_thomas/src/components/Login/NewParticipant.js index 45e097a12d5ceb137049a61b64632201e79a1ad0..ce965a51c36d1bf678e2af4d8e6a974f5932cdba 100644 --- a/front_thomas/src/components/Login/NewParticipant.js +++ b/front_thomas/src/components/Login/NewParticipant.js @@ -13,7 +13,6 @@ export default function addParticipantIfNotExists (props) { return () => clearInterval(interval); }, []); - console.log(participants);