fix(register): get by name set condition to AND
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m18s

This commit is contained in:
Thibaut Valentin 2025-03-15 09:00:42 +01:00
parent 2db82d19f3
commit 2cdc7e4aac

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)