Merge pull request 'fix(register): get by name set condition to AND' (#38) from dev into master

Reviewed-on: #38
This commit is contained in:
Thibaut Valentin 2025-03-15 11:21:57 +01:00
commit ae0c0041c9

View File

@ -252,7 +252,7 @@ public class CompetitionService {
} else {
if (fname == null || lname == null)
return Uni.createFrom().failure(new DBadRequestException("Nom et prénom requis"));
return combRepository.find("LOWER(lname) LIKE LOWER(?1) OR LOWER(fname) LIKE LOWER(?2)", lname,
return combRepository.find("LOWER(lname) LIKE LOWER(?1) AND LOWER(fname) LIKE LOWER(?2)", lname,
fname).firstResult()
.invoke(Unchecked.consumer(combModel -> {
if (combModel == null)