fix: deleteLicence Panache missing transaction context

This commit is contained in:
Thibaut Valentin 2025-12-18 15:24:32 +01:00
parent 50b49c40e3
commit 7f957b98f2

View File

@ -177,7 +177,7 @@ public class LicenceService {
"Impossible de supprimer une licence pour laquelle un paiement est en cours");
})))
.call(model -> ls.logADelete(model))
.chain(model -> repository.delete(model));
.chain(model -> Panache.withTransaction(() -> repository.delete(model)));
}
public Uni<LicenceModel> askLicence(long id, LicenceForm form, Consumer<MembreModel> checkPerm) {