fix(register): get by name set condition to AND
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m18s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m18s
This commit is contained in:
parent
2db82d19f3
commit
2cdc7e4aac
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user