|
|
@@ -75,7 +75,7 @@ public class ApiController {
|
|
|
@DeleteMapping("/evenements/history/{uuid}/content/{id}")
|
|
|
boolean deleteHistoryEvenement(@PathVariable String uuid, @PathVariable Long id) {
|
|
|
Optional<Evenement> evt = repository.findById(id);
|
|
|
- if (evt.isEmpty()) {
|
|
|
+ if (!evt.isPresent()) {
|
|
|
return false;
|
|
|
}
|
|
|
if (evt.get().getUuid().equals(uuid)) {
|