feat: add licence state to membre find result

This commit is contained in:
2026-08-05 16:45:18 +02:00
parent d3805ea0e7
commit a328e71035
4 changed files with 26 additions and 40 deletions

View File

@@ -107,7 +107,7 @@ public class LicenceService {
return Panache.withTransaction(() -> repository.persist(model));
}
public Uni<LicenceModel> setLicence(long id, LicenceForm form) {
public Uni<LicenceModel> setLicence(long id, LicenceForm form) { // TODO add log
if (form.getId() == -1) {
return combRepository.findById(id).chain(membreModel -> {
LicenceModel model = new LicenceModel();