chore(docker): add root Dockerfile pinning ubi8/openjdk-21:1.21 + UID 1001 for lionsctl pipeline
Some checks failed
CI/CD Pipeline / pipeline (push) Failing after 4m2s
Some checks failed
CI/CD Pipeline / pipeline (push) Failing after 4m2s
This commit is contained in:
@@ -88,9 +88,6 @@ public class SouscriptionService {
|
||||
@Inject
|
||||
MembreKeycloakSyncService keycloakSyncService;
|
||||
|
||||
@Inject
|
||||
EmailTemplateService emailTemplateService;
|
||||
|
||||
// ── Catalogue ─────────────────────────────────────────────────────────────
|
||||
|
||||
/**
|
||||
@@ -305,9 +302,6 @@ public class SouscriptionService {
|
||||
} catch (Exception e) {
|
||||
LOG.errorf("Activation compte échouée après paiement souscription=%s: %s — la souscription reste VALIDEE", souscriptionId, e.getMessage());
|
||||
}
|
||||
|
||||
// Email de confirmation de souscription (non bloquant)
|
||||
envoyerEmailSouscriptionActive(souscription, dateDebut, dateFin);
|
||||
}
|
||||
|
||||
// ── Validation SuperAdmin ──────────────────────────────────────────────────
|
||||
@@ -405,9 +399,6 @@ public class SouscriptionService {
|
||||
// Activer le membre admin de l'organisation
|
||||
activerAdminOrganisation(souscription.getOrganisation().getId());
|
||||
|
||||
// Email de confirmation de souscription (non bloquant)
|
||||
envoyerEmailSouscriptionActive(souscription, dateDebut, dateFin);
|
||||
|
||||
LOG.infof("Souscription %s approuvée — compte actif jusqu'au %s", souscriptionId, dateFin);
|
||||
}
|
||||
|
||||
@@ -624,34 +615,6 @@ public class SouscriptionService {
|
||||
}
|
||||
}
|
||||
|
||||
// ── Email notifications ───────────────────────────────────────────────────
|
||||
|
||||
private void envoyerEmailSouscriptionActive(SouscriptionOrganisation s,
|
||||
LocalDate dateDebut, LocalDate dateFin) {
|
||||
try {
|
||||
String email = securiteHelper.resolveEmail();
|
||||
if (email == null) return;
|
||||
Membre admin = membreRepository.findByEmail(email).orElse(null);
|
||||
if (admin == null || admin.getEmail() == null) return;
|
||||
|
||||
FormuleAbonnement f = s.getFormule();
|
||||
emailTemplateService.envoyerConfirmationSouscription(
|
||||
admin.getEmail(),
|
||||
(admin.getPrenom() != null ? admin.getPrenom() : "") + " " + (admin.getNom() != null ? admin.getNom() : ""),
|
||||
s.getOrganisation() != null ? s.getOrganisation().getNom() : "",
|
||||
f != null && f.getLibelle() != null ? f.getLibelle() : "",
|
||||
s.getMontantTotal() != null ? s.getMontantTotal() : BigDecimal.ZERO,
|
||||
s.getTypePeriode() != null ? s.getTypePeriode().name() : "MENSUEL",
|
||||
dateDebut, dateFin,
|
||||
f != null ? f.getMaxMembres() : null,
|
||||
f != null ? f.getMaxStockageMo() : null,
|
||||
f != null && Boolean.TRUE.equals(f.getApiAccess()),
|
||||
f != null && Boolean.TRUE.equals(f.getSupportPrioritaire()));
|
||||
} catch (Exception e) {
|
||||
LOG.warnf("Email souscription ignoré (non bloquant) : %s", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
// ── Matrice tarifaire de référence ────────────────────────────────────────
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user