Skip to content

Commit

Permalink
fix: 사용자 목표 조회 api 수정
Browse files Browse the repository at this point in the history
jackson config 추가에 따른 설정 충돌 해결
  • Loading branch information
koosco committed Dec 6, 2024
1 parent d96fbfd commit 088dae0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ dependencies {
implementation 'com.google.firebase:firebase-admin:9.2.0'

//Jackson Data binding
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.1'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.16.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.16.1'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ public RecommendQuestListResponseDto recommendQuest(Long memberId) {
othersVector.stream().flatMap(vector -> vector.goals().stream()).toList()),
"format",
format));
log.info("response is {}", response);
return converter.convert(response);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.Optional;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.groom.orbit.goal.dao.GoalRepository;
Expand All @@ -18,6 +19,7 @@ public class GoalCommandService {

private final GoalRepository goalRepository;

@Transactional(propagation = Propagation.REQUIRES_NEW)
public Goal createGoal(String title, String category) {
Goal goal = Goal.create(title, category);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public class GoalRecommendService {

public GetRecommendGoalListResponseDto createRecommendGoal(Long memberId) {
RecommendGoalListResponseDto dtos = aiService.recommendGoal(memberId);
dtos.items().forEach(dto -> goalCommandService.upsert(dto.title(), dto.category()));
List<Goal> newGoals =
dtos.items().stream()
.map(dto -> goalCommandService.upsert(dto.title(), dto.category()))
Expand Down

0 comments on commit 088dae0

Please sign in to comment.