Skip to content

Commit fce3a28

Browse files
committed
fix(TilTagRepository): countByUserTodayTil 퀘스트 Q2 쿼리의 publishedAt <= :to를 < :to로 변경하여 반열린 구간 적용
1 parent ced1901 commit fce3a28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/Rootin/domain/til/repository/TilTagRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ List<TilTag> findTagsSince(
2626
@Param("from") LocalDateTime from
2727
);
2828

29-
// 퀘스트 Q2용 - 오늘 발행된 TIL에 붙은 태그 수 반환
29+
// 퀘스트 Q2용 - 오늘 발행된 TIL에 붙은 태그 수 반환 (반열린 구간 [from, to))
3030
@Query("""
3131
SELECT COUNT(tt) FROM TilTag tt
3232
JOIN tt.til t
3333
WHERE t.user.id = :userId
3434
AND t.status = :status
3535
AND t.publishedAt >= :from
36-
AND t.publishedAt <= :to
36+
AND t.publishedAt < :to
3737
""")
3838
long countByUserTodayTil(
3939
@Param("userId") Long userId,

0 commit comments

Comments
 (0)