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 631e1bb..92af417 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 @@ -162,6 +162,7 @@ public class PartieKahootController { reponsePartie.setId(new ReponsePartieKahootKey(reponse.getQuestion().getId(), partieKahoot.getId(), joueur.getId())); reponsePartie.setQuestion(reponse.getQuestion()); reponsePartie.setPartie(partieKahoot); + reponsePartie.setReponse(reponse); reponsePartie.setJoueur(joueur); this.reponsePartieKahootRepository.save(reponsePartie);