Skip to content

Commit b7d665d

Browse files
committed
3288 - SF
1 parent 920a937 commit b7d665d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

server/ee/libs/ai/ai-copilot/ai-copilot-service/src/main/java/com/bytechef/ee/ai/copilot/config/AiCopilotConfiguration.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ public AiCopilotConfiguration(ApplicationProperties applicationProperties) {
5656

5757
this.model = options.getModel();
5858
this.openAiApiKey = openAi.getApiKey();
59-
this.pgVector = copilot.getVectorstore()
60-
.getPgVector();
59+
60+
ApplicationProperties.Ai.Copilot.Vectorstore vectorstore = copilot.getVectorstore();
61+
62+
this.pgVector = vectorstore.getPgVector();
6163
this.temperature = options.getTemperature();
6264
}
6365

server/libs/automation/automation-configuration/automation-configuration-service/src/main/java/com/bytechef/automation/configuration/service/SharedTemplateServiceImpl.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ public SharedTemplateServiceImpl(SharedTemplateRepository sharedTemplateReposito
4343
@Override
4444
@Transactional(readOnly = true)
4545
public Optional<SharedTemplate> fetchSharedTemplate(UUID uuid) {
46-
return TenantUtils.callWithTenantId(TenantContext.DEFAULT_TENANT_ID,
47-
() -> sharedTemplateRepository.findByUuid(uuid));
46+
return TenantUtils.callWithTenantId(
47+
TenantContext.DEFAULT_TENANT_ID, () -> sharedTemplateRepository.findByUuid(uuid));
4848
}
4949

5050
@Override
5151
@Transactional(readOnly = true)
5252
public SharedTemplate getSharedTemplate(UUID uuid) {
53-
return TenantUtils.callWithTenantId(TenantContext.DEFAULT_TENANT_ID,
53+
return TenantUtils.callWithTenantId(
54+
TenantContext.DEFAULT_TENANT_ID,
5455
() -> sharedTemplateRepository.findByUuid(uuid)
5556
.orElseThrow(() -> new IllegalArgumentException("Shared template not found for uuid: " + uuid)));
5657
}

0 commit comments

Comments
 (0)