Skip to content

Commit 463c1fb

Browse files
authored
fix: Promote to UAT (#361)
2 parents a1a7e77 + b51e416 commit 463c1fb

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ val commonsLang3Version = "3.20.0"
7676
val lz4JavaVersion = "1.10.1"
7777
val springCloudDepsVersion = "2025.1.0"
7878

79-
val p4paActivitiesVersion = "1.169.2"
79+
val p4paActivitiesVersion = "1.170.0"
8080

8181
dependencyManagement {
8282
imports {

gradle.lockfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ io.temporal:temporal-spring-boot-autoconfigure:1.32.1=compileClasspath
8080
io.temporal:temporal-spring-boot-starter:1.32.1=compileClasspath
8181
io.temporal:temporal-test-server:1.32.1=compileClasspath
8282
io.temporal:temporal-testing:1.32.1=compileClasspath
83-
it.gov.pagopa.payhub:p4pa-payhub-activities:1.169.2=compileClasspath
83+
it.gov.pagopa.payhub:p4pa-payhub-activities:1.170.0=compileClasspath
8484
jakarta.activation:jakarta.activation-api:2.1.4=compileClasspath
8585
jakarta.annotation:jakarta.annotation-api:3.0.0=compileClasspath
8686
jakarta.persistence:jakarta.persistence-api:3.2.0=compileClasspath

src/main/java/it/gov/pagopa/pu/workflow/connector/organization/service/BrokerServiceImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
import it.gov.pagopa.pu.workflow.connector.organization.client.BrokerSearchClient;
44
import it.gov.pagopa.pu.organization.dto.generated.Broker;
5+
import org.springframework.cache.annotation.CacheConfig;
6+
import org.springframework.cache.annotation.Cacheable;
57
import org.springframework.stereotype.Service;
68

79
import java.util.Optional;
810

911
@Service
12+
@CacheConfig(cacheNames = it.gov.pagopa.pu.workflow.config.CacheConfig.Fields.organization)
1013
public class BrokerServiceImpl implements BrokerService {
1114

1215
private final BrokerSearchClient brokerSearchClient;
@@ -16,6 +19,7 @@ public BrokerServiceImpl(BrokerSearchClient brokerSearchClient) {
1619
}
1720

1821
@Override
22+
@Cacheable(key = "'brokerOf-' + #organizationId", unless = "#result == null")
1923
public Optional<Broker> findByBrokeredOrganizationId(Long organizationId, String accessToken) {
2024
return Optional.ofNullable(
2125
brokerSearchClient.findByBrokeredOrganizationId(organizationId, accessToken)

0 commit comments

Comments
 (0)