Merge pull request #20

dev
This commit is contained in:
TitiOnFire 2024-03-10 21:11:09 +01:00 committed by GitHub
commit 20faaba30b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ public class MembreService {
public SimpleCombModel find(int licence, String np) throws Throwable { public SimpleCombModel find(int licence, String np) throws Throwable {
return VertxContextSupport.subscribeAndAwait(() -> Panache.withTransaction(() -> 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))); licence, np).firstResult().map(SimpleCombModel::fromModel)));
} }