setup question actuel au lancement de la partie

Springboot
Victor SOULIER 1 year ago
parent b6e4a995d3
commit 8c1a4681b1

@ -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);
}

Loading…
Cancel
Save