diff --git a/Model/UserModel.php b/Model/UserModel.php index 82d1077e..ef0747d0 100644 --- a/Model/UserModel.php +++ b/Model/UserModel.php @@ -295,8 +295,7 @@ class UserModel return $lesPseudos; } public function getPlayersEmail(int $idPartie) : array{ - $lesJoueurs = $this->getLesJoueurs($idPartie); - return $lesJoueurs; + return $this->partie_gateway->getLesMailJoueurs($idPartie); } public function getPlayerScore(string $mailUtilisateur,int $idPartie) : array{ global $playerNumberPerGame; diff --git a/View/src/JS/dashboard.js b/View/src/JS/dashboard.js index 234cef5e..0dca7986 100644 --- a/View/src/JS/dashboard.js +++ b/View/src/JS/dashboard.js @@ -133,6 +133,7 @@ function dashboard () { window.addEventListener("load", start); function start(){ + dashboard(); setInterval('dashboard()', 10000); } \ No newline at end of file