From a53c62abefd25385c6bcd2a58f51be78104c622e Mon Sep 17 00:00:00 2001
From: Thomas Bouquet <thomas.bouquet@student-cs.fr>
Date: Sat, 6 Mar 2021 17:59:45 +0100
Subject: [PATCH] mieux avec l'id du participant

---
 back/src/controllers/equipe.controller.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/back/src/controllers/equipe.controller.js b/back/src/controllers/equipe.controller.js
index 2bc78849..4383b24c 100644
--- a/back/src/controllers/equipe.controller.js
+++ b/back/src/controllers/equipe.controller.js
@@ -28,7 +28,7 @@ function getClassementEquipe(req, res) {
       if (data.id in leader_team) {
         if (leader_team[data.id].participants.indexOf(data.partId) == -1) {
           leader_team[data.id].participants.unshift(data.partId);
-          if (data.id != 'sprint') {
+          if (data.partId != 'sprint') {
           leader_team[data.id].nbParticipant += 1;
         }
       }
-- 
GitLab