fix: membre research

This commit is contained in:
Thibaut Valentin 2024-03-10 21:10:47 +01:00
parent cdca5c1aab
commit 7fd17f0223

View File

@ -46,7 +46,7 @@ public class MembreService {
public SimpleCombModel find(int licence, String np) throws Throwable {
return VertxContextSupport.subscribeAndAwait(() -> Panache.withTransaction(() ->
repository.find("licence = ?1 AND (lname collate UTF8_GENERAL_CI LIKE ?2 OR fname collate UTF8_GENERAL_CI LIKE ?2)",
repository.find("licence = ?1 AND (lname LIKE ?2 OR fname LIKE ?2)",
licence, np).firstResult().map(SimpleCombModel::fromModel)));
}