Skip to content

Commit

Permalink
refactor: 리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
HyeonsuLee committed Dec 6, 2024
1 parent 6a669bb commit 0b8fb6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ public interface BenefitCategoryMapRepository extends Repository<BenefitCategory

List<BenefitCategoryMap> findAllByBenefitCategoryId(Integer benefitCategoryId);

@Query("SELECT bcm FROM BenefitCategoryMap bcm " +
"JOIN FETCH bcm.shop s " +
"JOIN FETCH bcm.benefitCategory bc")
@Query("""
SELECT bcm FROM BenefitCategoryMap bcm
JOIN FETCH bcm.shop s
JOIN FETCH bcm.benefitCategory bc
""")
List<BenefitCategoryMap> findAllWithFetchJoin();

BenefitCategoryMap save(BenefitCategoryMap benefitCategoryMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ public void publishCallNotification(Integer shopId, Integer studentId) {

if (isSubscribeReviewNotification(studentId)) {
ShopReviewNotification shopReviewNotification = ShopReviewNotification.builder()
.shopId(shopId)
.studentId(studentId)
.build();
.shopId(shopId)
.studentId(studentId)
.build();

double score = LocalDateTime.now(clock).plusHours(1).toEpochSecond(ZoneOffset.UTC);
shopReviewNotificationRedisRepository.save(shopReviewNotification, score);
Expand Down

0 comments on commit 0b8fb6f

Please sign in to comment.