fix(membre): null licence number on creation

This commit is contained in:
2025-01-22 21:13:12 +01:00
parent c2d602b9bf
commit 254fd0582f
4 changed files with 4 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ public class MembreModel {
Genre genre;
@Schema(description = "Le numéro de licence du membre.", example = "12345")
int licence;
Integer licence;
@Schema(description = "Le pays du membre.", example = "FR")
String country;

View File

@@ -270,6 +270,7 @@ public class MembreService {
model.setFname(input.getFname());
model.setLname(input.getLname());
model.setEmail(input.getEmail());
model.setLicence(null);
model.setGenre(input.getGenre());
model.setCountry(input.getCountry());
model.setBirth_date(input.getBirth_date());