From 145d5e7ca8962bf669265efbcffeb09108bc51c5 Mon Sep 17 00:00:00 2001 From: Thibaut Valentin Date: Mon, 29 Dec 2025 15:41:13 +0100 Subject: [PATCH] feat: update quarkus --- pom.xml | 6 +++--- .../ffsaf/domain/service/HelloAssoTokenService.java | 2 -- .../fr/titionfire/ffsaf/domain/service/LoggerService.java | 2 ++ .../fr/titionfire/ffsaf/domain/service/MembreService.java | 2 +- src/main/resources/application.properties | 2 -- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 2c0622e..de66203 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ UTF-8 quarkus-bom io.quarkus.platform - 3.16.4 + 3.30.5 true 3.2.3 @@ -68,7 +68,7 @@ io.quarkiverse.tika quarkus-tika - 2.0.4 + 2.3.0 @@ -127,7 +127,7 @@ org.apache.xmlgraphics fop - 2.6 + 2.11 io.quarkus diff --git a/src/main/java/fr/titionfire/ffsaf/domain/service/HelloAssoTokenService.java b/src/main/java/fr/titionfire/ffsaf/domain/service/HelloAssoTokenService.java index 253a071..1a5b131 100644 --- a/src/main/java/fr/titionfire/ffsaf/domain/service/HelloAssoTokenService.java +++ b/src/main/java/fr/titionfire/ffsaf/domain/service/HelloAssoTokenService.java @@ -4,7 +4,6 @@ import fr.titionfire.ffsaf.rest.client.HelloAssoAuthClient; import fr.titionfire.ffsaf.rest.client.dto.TokenResponse; import io.smallrye.mutiny.Uni; import jakarta.enterprise.context.ApplicationScoped; -import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.logging.Logger; @@ -13,7 +12,6 @@ import org.jboss.logging.Logger; public class HelloAssoTokenService { private static final Logger LOG = Logger.getLogger(HelloAssoTokenService.class); - @Inject @RestClient HelloAssoAuthClient authClient; diff --git a/src/main/java/fr/titionfire/ffsaf/domain/service/LoggerService.java b/src/main/java/fr/titionfire/ffsaf/domain/service/LoggerService.java index 025c88b..5638a7f 100644 --- a/src/main/java/fr/titionfire/ffsaf/domain/service/LoggerService.java +++ b/src/main/java/fr/titionfire/ffsaf/domain/service/LoggerService.java @@ -58,6 +58,8 @@ public class LoggerService { } public Uni append() { + if (buffer.isEmpty()) + return Uni.createFrom().voidItem(); return Panache.withTransaction(() -> repository.persist(buffer)) .invoke(__ -> buffer.clear()); } diff --git a/src/main/java/fr/titionfire/ffsaf/domain/service/MembreService.java b/src/main/java/fr/titionfire/ffsaf/domain/service/MembreService.java index a49428c..023b543 100644 --- a/src/main/java/fr/titionfire/ffsaf/domain/service/MembreService.java +++ b/src/main/java/fr/titionfire/ffsaf/domain/service/MembreService.java @@ -158,7 +158,7 @@ public class MembreService { "EXISTS (SELECT 1 FROM LicenceModel l WHERE l.membre.id = m.id AND l.saison >= %s)", Utils.getSaison() - 1); - String clubFilter = "?3 = ?3"; + String clubFilter = "(TRUE OR ?3 = ?3)"; if (club != null) { if (club instanceof String club_) { if (!club_.isBlank()) { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 0d7d3e6..5ffd4f2 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -75,6 +75,4 @@ helloasso.client-id=changeme helloasso.client-secret=changeme quarkus.rest-client.helloasso-auth.url=${helloasso.api}/oauth2 -quarkus.rest-client.helloasso-auth.scope=javax.inject.Singleton - quarkus.rest-client.helloasso-api.url=${helloasso.api}/v5