diff --git a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/controllers/PartieKahootController.java b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/controllers/PartieKahootController.java index afe230e..d3a7f2f 100644 --- a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/controllers/PartieKahootController.java +++ b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/controllers/PartieKahootController.java @@ -90,6 +90,7 @@ public class PartieKahootController { throw new PartyAlreadyStartedException(); } partieKahoot.setStatus(Status.Started); + partieKahoot.setQuestionActuel(partieKahoot.getQuestions().getFirst()); partieKahoot = this.partieKahootService.update(partieKahoot); return this.modelMapper.map(partieKahoot, PartieKahootStatusDTO.class); }