Skip to content

Commit

Permalink
🚑 Fix: createFoodDto getDate 누락된 오류 수정 (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
win-luck committed Nov 13, 2023
1 parent 1c1d4e8 commit a1f2a12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class FoodService {
private final UserRepository userRepository;

// 촬영 후, 음식 정보 저장
@CacheEvict(value = {"ResponseNutritionSumByDateDto"}, key = "#userId+date.toString()", cacheManager = "diareatCacheManager")
@CacheEvict(value = {"ResponseNutritionSumByDateDto"}, key = "#userId+createFoodDto.getDate()", cacheManager = "diareatCacheManager")
@Transactional
public Long saveFood(CreateFoodDto createFoodDto) {
if (foodRepository.existsByName(createFoodDto.getName())){
Expand Down

0 comments on commit a1f2a12

Please sign in to comment.