Skip to content

Commit

Permalink
PET-280 fix : @Cacheable 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
tlarbals824 committed Dec 26, 2023
1 parent 9a3d53b commit ac7ba0e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package com.pawith.tododomain.service;

import com.pawith.commonmodule.annotation.DomainService;
import com.pawith.tododomain.consts.TodoDomainCacheValueConsts;
import com.pawith.tododomain.entity.Assign;
import com.pawith.tododomain.entity.Todo;
import com.pawith.tododomain.exception.AssignNotFoundException;
import com.pawith.tododomain.exception.TodoError;
import com.pawith.tododomain.repository.AssignRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
Expand All @@ -24,7 +22,6 @@ public class AssignQueryService {

private final AssignRepository assignRepository;

@Cacheable(value = TodoDomainCacheValueConsts.ASSIGN_CACHE_WITH_CATEGORY_ID, key = "#categoryId")
public List<Assign> findAllAssignByCategoryIdAndScheduledDate(Long categoryId, LocalDate scheduledDate) {
return assignRepository.findAllByCategoryIdAndScheduledDateQuery(categoryId, scheduledDate);
}
Expand Down

0 comments on commit ac7ba0e

Please sign in to comment.