|
|
@ -90,6 +90,7 @@ public class PartieKahootController {
|
|
|
|
throw new PartyAlreadyStartedException();
|
|
|
|
throw new PartyAlreadyStartedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
partieKahoot.setStatus(Status.Started);
|
|
|
|
partieKahoot.setStatus(Status.Started);
|
|
|
|
|
|
|
|
partieKahoot.setQuestionActuel(partieKahoot.getQuestions().getFirst());
|
|
|
|
partieKahoot = this.partieKahootService.update(partieKahoot);
|
|
|
|
partieKahoot = this.partieKahootService.update(partieKahoot);
|
|
|
|
return this.modelMapper.map(partieKahoot, PartieKahootStatusDTO.class);
|
|
|
|
return this.modelMapper.map(partieKahoot, PartieKahootStatusDTO.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|