fix: deleteLicence Panache missing transaction context
This commit is contained in:
parent
50b49c40e3
commit
7f957b98f2
@ -177,7 +177,7 @@ public class LicenceService {
|
|||||||
"Impossible de supprimer une licence pour laquelle un paiement est en cours");
|
"Impossible de supprimer une licence pour laquelle un paiement est en cours");
|
||||||
})))
|
})))
|
||||||
.call(model -> ls.logADelete(model))
|
.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) {
|
public Uni<LicenceModel> askLicence(long id, LicenceForm form, Consumer<MembreModel> checkPerm) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user