diff --git a/src/main/java/etunicorn/controller/ConsommationController.java b/src/main/java/etunicorn/controller/ConsommationController.java index 929b760..9138b45 100644 --- a/src/main/java/etunicorn/controller/ConsommationController.java +++ b/src/main/java/etunicorn/controller/ConsommationController.java @@ -80,7 +80,7 @@ public class ConsommationController extends BaseController implements etunicorn. return generateError(HttpStatus.NOT_FOUND, "Consommation inconnue"); } consommationRepository.delete(consommation); - return null; + return new ResponseEntity(HttpStatus.NO_CONTENT); } @Override diff --git a/src/main/java/etunicorn/controller/EvenementController.java b/src/main/java/etunicorn/controller/EvenementController.java index 2919d0c..7d87e2d 100644 --- a/src/main/java/etunicorn/controller/EvenementController.java +++ b/src/main/java/etunicorn/controller/EvenementController.java @@ -92,7 +92,7 @@ public class EvenementController extends BaseController implements etunicorn.gen return generateError(HttpStatus.NOT_FOUND, "Évènement inconnu"); } evenementRepository.delete(evenement); - return null; + return new ResponseEntity(HttpStatus.NO_CONTENT); } @Override -- libgit2 0.21.2