feat: add club_id to LicenceModel for stats

This commit is contained in:
2025-07-05 21:19:57 +02:00
parent 3fd5ae3741
commit 9705182547
4 changed files with 11 additions and 3 deletions

View File

@@ -226,6 +226,7 @@ public class MembreService {
if (l == null) {
l = new LicenceModel();
l.setMembre(membreModel1);
l.setClub_id(clubModel.get().getId());
l.setValidate(false);
l.setSaison(Utils.getSaison());
}
@@ -349,6 +350,9 @@ public class MembreService {
membreModel)
).toList()).andFailFast());
})
.call(membreModel -> licenceRepository.update("club_id = ?1 where membre = ?2 AND saison = ?3",
(membreModel.getClub() == null) ? null : membreModel.getClub().getId(), membreModel,
Utils.getSaison()))
.call(membreModel -> membre.getPhoto_data().length > 0 ? ls.logAUpdate("Photo",
membreModel) : Uni.createFrom().nullItem())
.map(__ -> "OK");