From 28d4ac77b6dff13dafe7b957c860833dd98f0456 Mon Sep 17 00:00:00 2001 From: visoulier Date: Sun, 31 Mar 2024 18:11:26 +0200 Subject: [PATCH] =?UTF-8?q?fix=20sauvegarde=20r=C3=A9ponse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iut/sciencequest/sae/controllers/PartieKahootController.java | 1 + 1 file changed, 1 insertion(+) 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);