Un jour ca marchera

This commit is contained in:
Alexis Leboeuf
2026-01-09 14:34:15 +01:00
parent 2240487915
commit 1cf7f85eea

View File

@@ -43,6 +43,7 @@ public class SessionResource {
@PreAuthorize("hasRole('coach')")
public ResponseEntity<?> create(@RequestBody SessionDTO dto) {
try {
System.out.println("ALLEZ ZYWOO TOP 1");
Session session = maptoEntity(dto);
System.out.println("ID COACH: " + dto.getCoachId());
Coach c = coachDAO.findById(dto.getCoachId()).orElse(null);