Skip to content

Commit

Permalink
✨ 분석 중 racecondition 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Yong99 committed May 17, 2024
1 parent 3a3ff7f commit 3bbfca6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ 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.save(tripFile);

Trip trip = cTripFile.getTrip();
trip.setAnalyzingCount(trip.getAnalyzingCount() - 1);
tripRepository.save(trip);

tripRepository.save(trip);
tripFileRepository.save(tripFile);
cardViewRepository.save(card);
successRecordNum++;
// 유저가 없는경우 map에 추가 있으면 카운트 추가
Expand Down

0 comments on commit 3bbfca6

Please sign in to comment.