refactoring

This commit is contained in:
dahoud
2026-01-03 16:04:47 +00:00
parent 9878d90d67
commit 3bc6661a89
155 changed files with 10277 additions and 2828 deletions

View File

@@ -249,7 +249,7 @@ public class ClientService {
public void delete(UUID id) {
logger.info("Suppression logique du client avec l'ID: {}", id);
Client client = findByIdRequired(id);
findByIdRequired(id);
clientRepository.softDelete(id);
logger.info("Client supprimé avec succès");
@@ -259,9 +259,8 @@ public class ClientService {
public void deleteByEmail(String email) {
logger.info("Suppression logique du client avec l'email: {}", email);
Client client =
findByEmail(email)
.orElseThrow(() -> new NotFoundException("Client non trouvé avec l'email: " + email));
findByEmail(email)
.orElseThrow(() -> new NotFoundException("Client non trouvé avec l'email: " + email));
clientRepository.softDeleteByEmail(email);
logger.info("Client supprimé avec succès");