Skip to content

Commit

Permalink
풀 리퀘스트 병합 #160
Browse files Browse the repository at this point in the history
backend/develop/v3
  • Loading branch information
J-Yong99 authored May 17, 2024
2 parents c95523c + b119ce6 commit c0a0076
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public SchedulerResponseDTO.AIModelRunResponseDTO getIncompleteCardViews() throw

log.info("cards.size : " + cards.size());
for (CardView card : cards) {
TripFile tripFile = card.getTripFile();
Trip ptrip = tripFile.getTrip();
Trip ptrip = card.getTripFile().getTrip();
User user = ptrip.getUser();
AiModelRunResponseDTO.RunModel ret = aiService.runAi(card.getRecordFileName(), user.getId());
if (Objects.equals(ret.getStatus(), "200")){
Expand All @@ -83,8 +82,8 @@ public SchedulerResponseDTO.AIModelRunResponseDTO getIncompleteCardViews() throw
card.setDisgust(ret.getEmotions().getDisgust());

// 분석도중 레이스컨디션 때문에 다시 여행을 불러오기
TripFile cTripFile = tripFileRepository.findById(tripFile.getId()).get();
tripFile.setAnalyzingCount(tripFile.getAnalyzingCount() - 1);
TripFile cTripFile = tripFileRepository.findById(card.getTripFile().getId()).get();
cTripFile.setAnalyzingCount(cTripFile.getAnalyzingCount() - 1);
Trip trip = cTripFile.getTrip();
trip.setAnalyzingCount(trip.getAnalyzingCount() - 1);

Expand Down

0 comments on commit c0a0076

Please sign in to comment.